From 420f3e2deb33bb31c481b3f8737f375ce4e82048 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 22 Jun 2020 21:07:02 +0200 Subject: [PATCH] Update gas costs in unit tests --- x/wasm/internal/keeper/keeper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/wasm/internal/keeper/keeper_test.go b/x/wasm/internal/keeper/keeper_test.go index f668a5dad5c..b2c19cc6aae 100644 --- a/x/wasm/internal/keeper/keeper_test.go +++ b/x/wasm/internal/keeper/keeper_test.go @@ -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) @@ -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)