Skip to content

Commit

Permalink
test: Add check for contract nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Feb 26, 2024
1 parent 3085c1e commit 76c6fe2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/evm/keeper/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func (suite *IntegrationTestSuite) TestState_EmptyToEmpty() {
addr := suite.DeployContract(testutil.StateTestContract)
storageBefore := suite.GetAllAccountStorage(suite.Ctx, addr)

contractAcc := suite.App.EvmKeeper.GetAccount(suite.Ctx, addr)
suite.Require().NotNil(contractAcc)
suite.Require().Equal(uint64(1), contractAcc.Nonce, "EIP-161: CREATE should increment nonce by 1 over default value (0)")

_, rsp, err := suite.CallContract(
testutil.StateTestContract,
addr,
Expand Down

0 comments on commit 76c6fe2

Please sign in to comment.