Skip to content

Commit

Permalink
Fix gas prices
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jan 27, 2020
1 parent ef94d4b commit dbe1239
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 @@ -151,7 +151,7 @@ func TestInstantiate(t *testing.T) {
require.Equal(t, "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5", addr.String())

gasAfter := ctx.GasMeter().GasConsumed()
require.Equal(t, uint64(36923), gasAfter-gasBefore)
require.Equal(t, uint64(37052), gasAfter-gasBefore)
}

func TestInstantiateWithNonExistingCodeID(t *testing.T) {
Expand Down Expand Up @@ -236,7 +236,7 @@ func TestExecute(t *testing.T) {

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

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

0 comments on commit dbe1239

Please sign in to comment.