Skip to content

Commit

Permalink
fix GetRevertKey test to use actual test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Feb 8, 2024
1 parent cf42160 commit d03f3d0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions x/evm/statedb/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,12 @@ func TestNewEphemeralStore_GetRevertKey(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {

store := statedb.NewEphemeralStore()

store.AddLog(&ethtypes.Log{})
store.AddRefund(1)
store.SetAccountSuicided(address)
tt.maleate(store)

key := store.GetRevertKey()
expected := statedb.StoreRevertKey{
RefundIndex: 1,
SuicidedAccountsIndex: 1,
LogsIndex: 1,
}

require.Equal(t, expected, key)
require.Equal(t, tt.expected, key)
})
}
}
Expand Down

0 comments on commit d03f3d0

Please sign in to comment.