Update test contract, escrow to 0.7 version
This commit is contained in:
@@ -151,7 +151,7 @@ func TestInstantiate(t *testing.T) {
|
||||
require.Equal(t, "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5", addr.String())
|
||||
|
||||
gasAfter := ctx.GasMeter().GasConsumed()
|
||||
require.Equal(t, uint64(28936), gasAfter-gasBefore)
|
||||
require.Equal(t, uint64(24763), gasAfter-gasBefore)
|
||||
|
||||
// ensure it is stored properly
|
||||
info := keeper.GetContractInfo(ctx, addr)
|
||||
@@ -244,7 +244,7 @@ func TestExecute(t *testing.T) {
|
||||
|
||||
// make sure gas is properly deducted from ctx
|
||||
gasAfter := ctx.GasMeter().GasConsumed()
|
||||
require.Equal(t, uint64(31805), gasAfter-gasBefore)
|
||||
require.Equal(t, uint64(31156), gasAfter-gasBefore)
|
||||
|
||||
// ensure bob now exists and got both payments released
|
||||
bobAcct = accKeeper.GetAccount(ctx, bob)
|
||||
|
||||
BIN
x/wasm/internal/keeper/testdata/contract.wasm
vendored
BIN
x/wasm/internal/keeper/testdata/contract.wasm
vendored
Binary file not shown.
BIN
x/wasm/internal/keeper/testdata/contract.wasm.gzip
vendored
BIN
x/wasm/internal/keeper/testdata/contract.wasm.gzip
vendored
Binary file not shown.
BIN
x/wasm/testdata/escrow.wasm
vendored
BIN
x/wasm/testdata/escrow.wasm
vendored
Binary file not shown.
Reference in New Issue
Block a user