Skip to content

Commit 46b2cad

Browse files
committed
Update go-cosmwasm and test contracts
1 parent f1977a0 commit 46b2cad

File tree

8 files changed

+5
-3
lines changed

8 files changed

+5
-3
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/CosmWasm/wasmd
33
go 1.13
44

55
require (
6-
github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200604114456-1b2359bb7eb9
6+
github.com/CosmWasm/go-cosmwasm v0.8.2-0.20200608192602-082a8c18f964
77
github.com/btcsuite/btcd v0.0.0-20190807005414-4063feeff79a // indirect
88
github.com/cosmos/cosmos-sdk v0.38.3
99
github.com/golang/mock v1.4.3 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ github.com/ChainSafe/go-schnorrkel v0.0.0-20200102211924-4bcbc698314f h1:4O1om+U
1111
github.com/ChainSafe/go-schnorrkel v0.0.0-20200102211924-4bcbc698314f/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4=
1212
github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200604114456-1b2359bb7eb9 h1:UJOWFHfh2SG47GJcQsjbcEnfw7JM4HPM2cFO1fjjqEs=
1313
github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200604114456-1b2359bb7eb9/go.mod h1:gAFCwllx97ejI+m9SqJQrmd2SBW7HA0fOjvWWJjM2uc=
14+
github.com/CosmWasm/go-cosmwasm v0.8.2-0.20200608192602-082a8c18f964 h1:qPuQfJFDXLcm8jhoWZs6x8jKr3c3yAlv40e93DUBHRY=
15+
github.com/CosmWasm/go-cosmwasm v0.8.2-0.20200608192602-082a8c18f964/go.mod h1:gAFCwllx97ejI+m9SqJQrmd2SBW7HA0fOjvWWJjM2uc=
1416
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
1517
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
1618
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=

x/wasm/internal/keeper/keeper_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func TestExecute(t *testing.T) {
297297

298298
// make sure gas is properly deducted from ctx
299299
gasAfter := ctx.GasMeter().GasConsumed()
300-
require.Equal(t, uint64(0x7fa1), gasAfter-gasBefore)
300+
require.Equal(t, uint64(0x7f9e), gasAfter-gasBefore)
301301

302302
// ensure bob now exists and got both payments released
303303
bobAcct = accKeeper.GetAccount(ctx, bob)
@@ -310,7 +310,7 @@ func TestExecute(t *testing.T) {
310310
require.NotNil(t, contractAcct)
311311
assert.Equal(t, sdk.Coins(nil), contractAcct.GetCoins())
312312

313-
t.Logf("Duration: %v (31728 gas)\n", diff)
313+
t.Logf("Duration: %v (%d gas)\n", diff, gasAfter-gasBefore)
314314
}
315315

316316
func TestExecuteWithNonExistingAddress(t *testing.T) {
135 KB
Binary file not shown.
3.77 KB
Binary file not shown.
Binary file not shown.
-620 Bytes
Binary file not shown.
-616 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)