From 0c2994d74ed5b863bd297a49468429e1e0e6a0f3 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 30 Oct 2023 22:21:47 -0700 Subject: [PATCH] fix unit test --- x/crosschain/types/message_set_node_keys_test.go | 2 +- zetaclient/keys_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/crosschain/types/message_set_node_keys_test.go b/x/crosschain/types/message_set_node_keys_test.go index caddf48817..b98194cd0c 100644 --- a/x/crosschain/types/message_set_node_keys_test.go +++ b/x/crosschain/types/message_set_node_keys_test.go @@ -28,7 +28,7 @@ func TestMsgSetNodeKeys_ValidateBasic(t *testing.T) { _, err := kb.NewAccount(mc.GetGranteeKeyName("signerName"), testdata.TestMnemonic, "", path, hd.Secp256k1) require.NoError(t, err) granterAddress := sdk.AccAddress(crypto.AddressHash([]byte("granterAddress"))) - k := mc.NewKeysWithKeybase(kb, granterAddress, "signerName", "") + k := mc.NewKeysWithKeybase(kb, granterAddress, "signerName") pubKeySet, err := k.GetPubKeySet() assert.NoError(t, err) addr, err := k.GetSignerInfo().GetAddress() diff --git a/zetaclient/keys_test.go b/zetaclient/keys_test.go index 8936659fb3..a2bd2fdcd5 100644 --- a/zetaclient/keys_test.go +++ b/zetaclient/keys_test.go @@ -105,7 +105,7 @@ func (ks *KeysSuite) TestNewKeys(c *C) { c.Assert(err, IsNil) c.Assert(k, NotNil) granter := cosmos.AccAddress(crypto.AddressHash([]byte("granter"))) - ki := NewKeysWithKeybase(k, granter, signerNameForTest, signerPasswordForTest) + ki := NewKeysWithKeybase(k, granter, signerNameForTest) kInfo := ki.GetSignerInfo() c.Assert(kInfo, NotNil) //c.Assert(kInfo.G, Equals, signerNameForTest)