From 61c5874f6ebae22a8efe9cd6f3043c5aefdc3085 Mon Sep 17 00:00:00 2001 From: linhpn99 Date: Fri, 23 Aug 2024 18:21:04 +0700 Subject: [PATCH] fixup --- contribs/gnodev/pkg/dev/node_test.go | 5 +++-- gno.land/pkg/gnoclient/mock_test.go | 2 +- gno.land/pkg/gnoclient/signer.go | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/contribs/gnodev/pkg/dev/node_test.go b/contribs/gnodev/pkg/dev/node_test.go index 784a901e03b..0d3e73fa2f3 100644 --- a/contribs/gnodev/pkg/dev/node_test.go +++ b/contribs/gnodev/pkg/dev/node_test.go @@ -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" @@ -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, } diff --git a/gno.land/pkg/gnoclient/mock_test.go b/gno.land/pkg/gnoclient/mock_test.go index 451ff670686..64da62936c2 100644 --- a/gno.land/pkg/gnoclient/mock_test.go +++ b/gno.land/pkg/gnoclient/mock_test.go @@ -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 diff --git a/gno.land/pkg/gnoclient/signer.go b/gno.land/pkg/gnoclient/signer.go index e34c866658b..51b38286012 100644 --- a/gno.land/pkg/gnoclient/signer.go +++ b/gno.land/pkg/gnoclient/signer.go @@ -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. //