Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
JayT106 committed Oct 17, 2022
1 parent 59c6959 commit 9019d44
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions x/evm/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,24 @@ func (suite *EvmTestSuite) TestInitGenesis() {
},
true,
},
{
"ignore empty account code checking",
func() {
acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, address.Bytes())

suite.app.AccountKeeper.SetAccount(suite.ctx, acc)
},
&types.GenesisState{
Params: types.DefaultParams(),
Accounts: []types.GenesisAccount{
{
Address: address.String(),
Code: "",
},
},
},
false,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 9019d44

Please sign in to comment.