mirror of https://github.com/certusone/wasmd.git
Add test label is properly stored
This commit is contained in:
parent
ba53b8a9c9
commit
61a117db05
|
@ -152,6 +152,14 @@ func TestInstantiate(t *testing.T) {
|
|||
|
||||
gasAfter := ctx.GasMeter().GasConsumed()
|
||||
require.Equal(t, uint64(28936), gasAfter-gasBefore)
|
||||
|
||||
// ensure it is stored properly
|
||||
info := keeper.GetContractInfo(ctx, addr)
|
||||
require.NotNil(t, info)
|
||||
assert.Equal(t, info.Creator, creator)
|
||||
assert.Equal(t, info.CodeID, contractID)
|
||||
assert.Equal(t, info.InitMsg, json.RawMessage(initMsgBz))
|
||||
assert.Equal(t, info.Label, "demo contract 1")
|
||||
}
|
||||
|
||||
func TestInstantiateWithNonExistingCodeID(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue