Skip to content

Commit bc76bb0

Browse files
authored
Merge pull request #126 from CosmWasm/update-test-contracts
Update test contracts
2 parents f90e467 + 545681d commit bc76bb0

File tree

8 files changed

+7
-5
lines changed

8 files changed

+7
-5
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.0.0-20200603080847-883f85520aac
6+
github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200603124627-0af410d57fa1
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.0.0-20200603080847-883f85520aac h1:Em+R1ZTKgnIT6bYhEqk8/e1IXuZDXvs7FyuUktNzWtg=
1313
github.com/CosmWasm/go-cosmwasm v0.0.0-20200603080847-883f85520aac/go.mod h1:gAFCwllx97ejI+m9SqJQrmd2SBW7HA0fOjvWWJjM2uc=
14+
github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200603124627-0af410d57fa1 h1:yTh6KEZXpVtjkhRQQSKOpS4YbRNIz7VFcace5czQkDw=
15+
github.com/CosmWasm/go-cosmwasm v0.8.1-0.20200603124627-0af410d57fa1/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
@@ -200,7 +200,7 @@ func TestInstantiate(t *testing.T) {
200200
require.Equal(t, "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5", addr.String())
201201

202202
gasAfter := ctx.GasMeter().GasConsumed()
203-
require.Equal(t, uint64(0x61f7), gasAfter-gasBefore)
203+
require.Equal(t, uint64(0x78c3), gasAfter-gasBefore)
204204

205205
// ensure it is stored properly
206206
info := keeper.GetContractInfo(ctx, addr)
@@ -295,7 +295,7 @@ func TestExecute(t *testing.T) {
295295

296296
// make sure gas is properly deducted from ctx
297297
gasAfter := ctx.GasMeter().GasConsumed()
298-
require.Equal(t, uint64(0x7b22), gasAfter-gasBefore)
298+
require.Equal(t, uint64(0x7b38), gasAfter-gasBefore)
299299

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

x/wasm/internal/keeper/staking_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ type StakingInitMsg struct {
2222
Decimals uint8 `json:"decimals"`
2323
Validator sdk.ValAddress `json:"validator"`
2424
ExitTax sdk.Dec `json:"exit_tax"`
25-
// MinWithdrawl is uint128 encoded as a string (use sdk.Int?)
26-
MinWithdrawl string `json:"min_withdrawl"`
25+
// MinWithdrawal is uint128 encoded as a string (use sdk.Int?)
26+
MinWithdrawl string `json:"min_withdrawal"`
2727
}
2828

2929
// StakingHandleMsg is used to encode handle messages
-9.98 KB
Binary file not shown.
Binary file not shown.
-9.57 KB
Binary file not shown.
-11.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)