From d982afeba94d35496eeed4a60dbf2a1974733079 Mon Sep 17 00:00:00 2001 From: zsystm Date: Thu, 19 Sep 2024 15:32:52 +0900 Subject: [PATCH] fix syntax after rebase --- client/x/evmstaking/keeper/genesis_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/x/evmstaking/keeper/genesis_test.go b/client/x/evmstaking/keeper/genesis_test.go index 1d544eb6..03b9fb72 100644 --- a/client/x/evmstaking/keeper/genesis_test.go +++ b/client/x/evmstaking/keeper/genesis_test.go @@ -34,6 +34,7 @@ func (s *TestSuite) TestInitGenesis() { valPubKey2 := pubKeys[2] valEvmAddr2, err := k1util.CosmosPubkeyToEVMAddress(valPubKey2.Bytes()) require.NoError(err) + valTokens := s.StakingKeeper.TokensFromConsensusPower(ctx, 10) tcs := []struct { name string @@ -58,8 +59,8 @@ func (s *TestSuite) TestInitGenesis() { { name: "pass: with validators", setup: func(c context.Context) { - s.setupValidatorAndDelegation(c, valPubKey1, delPubKey, valAddr1, delAddr) - s.setupValidatorAndDelegation(c, valPubKey2, delPubKey, valAddr2, delAddr) + s.setupValidatorAndDelegation(c, valPubKey1, delPubKey, valAddr1, delAddr, valTokens) + s.setupValidatorAndDelegation(c, valPubKey2, delPubKey, valAddr2, delAddr, valTokens) }, gs: func() *types.GenesisState { return &types.GenesisState{