Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
linhpn99 committed Aug 23, 2024
1 parent 32ba052 commit 61c5874
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions contribs/gnodev/pkg/dev/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/gnolang/gno/contribs/gnodev/pkg/events"
"github.com/gnolang/gno/gno.land/pkg/gnoclient"
"github.com/gnolang/gno/gno.land/pkg/gnoland/ugnot"
"github.com/gnolang/gno/gno.land/pkg/integration"
"github.com/gnolang/gno/gno.land/pkg/sdk/vm"
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
Expand Down Expand Up @@ -253,8 +254,8 @@ func testingCallRealm(t *testing.T, node *Node, msgs ...vm.MsgCall) (*core_types
require.NoError(t, err)

txcfg := gnoclient.BaseTxCfg{
GasFee: "1000000ugnot", // Gas fee
GasWanted: 2_000_000, // Gas wanted
GasFee: ugnot.ValueString(1000000), // Gas fee
GasWanted: 2_000_000, // Gas wanted
AccountNumber: acc.AccountNumber,
SequenceNumber: acc.Sequence,
}
Expand Down
2 changes: 1 addition & 1 deletion gno.land/pkg/gnoclient/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/gnolang/gno/tm2/pkg/std"
)

// Signer mock
type (
// Signer mock
mockSign func(cfg SignCfg) (*std.Tx, error)
mockInfo func() (keys.Info, error)
mockValidate func() error
Expand Down
3 changes: 3 additions & 0 deletions gno.land/pkg/gnoclient/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (s SignerFromKeybase) Sign(cfg SignCfg) (*std.Tx, error) {
return &tx, nil
}

// Ensure SignerFromKeybase implements the Signer interface.
var _ Signer = (*SignerFromKeybase)(nil)

// SignerFromBip39 creates a signer from an in-memory keybase with a single default account, derived from the given mnemonic.
// This can be useful in scenarios where storing private keys in the filesystem isn't feasible.
//
Expand Down

0 comments on commit 61c5874

Please sign in to comment.