Skip to content

Commit

Permalink
Update gas costs in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jun 22, 2020
1 parent 751ce5a commit 420f3e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/wasm/internal/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func TestInstantiate(t *testing.T) {
require.Equal(t, "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5", addr.String())

gasAfter := ctx.GasMeter().GasConsumed()
require.Equal(t, uint64(0x78c3), gasAfter-gasBefore)
require.Equal(t, uint64(0x11503), gasAfter-gasBefore)

// ensure it is stored properly
info := keeper.GetContractInfo(ctx, addr)
Expand Down Expand Up @@ -298,7 +298,7 @@ func TestExecute(t *testing.T) {

// make sure gas is properly deducted from ctx
gasAfter := ctx.GasMeter().GasConsumed()
require.Equal(t, uint64(0x7f9e), gasAfter-gasBefore)
require.Equal(t, uint64(0x11bde), gasAfter-gasBefore)

// ensure bob now exists and got both payments released
bobAcct = accKeeper.GetAccount(ctx, bob)
Expand Down

0 comments on commit 420f3e2

Please sign in to comment.