Adjust to type changes and renamings
This commit is contained in:
@@ -61,25 +61,25 @@ func TestGovVoteByContract(t *testing.T) {
|
||||
}{
|
||||
"yes": {
|
||||
vote: &wasmvmtypes.VoteMsg{
|
||||
Vote: wasmvmtypes.Yes,
|
||||
Option: wasmvmtypes.Yes,
|
||||
},
|
||||
expPass: true,
|
||||
},
|
||||
"no": {
|
||||
vote: &wasmvmtypes.VoteMsg{
|
||||
Vote: wasmvmtypes.No,
|
||||
Option: wasmvmtypes.No,
|
||||
},
|
||||
expPass: false,
|
||||
},
|
||||
"abstain": {
|
||||
vote: &wasmvmtypes.VoteMsg{
|
||||
Vote: wasmvmtypes.Abstain,
|
||||
Option: wasmvmtypes.Abstain,
|
||||
},
|
||||
expPass: true,
|
||||
},
|
||||
"no with veto": {
|
||||
vote: &wasmvmtypes.VoteMsg{
|
||||
Vote: wasmvmtypes.NoWithVeto,
|
||||
Option: wasmvmtypes.NoWithVeto,
|
||||
},
|
||||
expPass: false,
|
||||
},
|
||||
|
||||
@@ -42,7 +42,7 @@ func MustExecViaStargateReflectContract[T sdkMessageType](t *testing.T, chain *i
|
||||
bz, err := chain.Codec.Marshal(m)
|
||||
require.NoError(t, err)
|
||||
vmMsgs[i] = wasmvmtypes.CosmosMsg{
|
||||
Stargate: &wasmvmtypes.StargateMsg{
|
||||
Any: &wasmvmtypes.AnyMsg{
|
||||
TypeURL: sdk.MsgTypeURL(m),
|
||||
Value: bz,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user