We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4368bb9 commit cb91d77Copy full SHA for cb91d77
tests/integration/module_test.go
@@ -112,6 +112,21 @@ var (
112
oldContract = mustLoad("./testdata/escrow_0.7.wasm")
113
)
114
115
+func TestStoreCodeSimulation(t *testing.T) {
116
+ data := setupTest(t)
117
+ data.ctx = data.ctx.WithExecMode(sdk.ExecModeSimulate)
118
+
119
+ msg := &types.MsgStoreCode{
120
+ Sender: addr1,
121
+ WASMByteCode: testContract,
122
+ }
123
124
+ h := data.msgServiceRouter.Handler(msg)
125
126
+ _, err := h(data.ctx, msg)
127
+ require.NoError(t, err)
128
+}
129
130
func TestHandleCreate(t *testing.T) {
131
cases := map[string]struct {
132
msg sdk.Msg
0 commit comments