Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hwray committed Nov 15, 2024
1 parent 8161136 commit c1edfaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion protocol/lib/ante/nested_msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/dydxprotocol/v4-chain/protocol/lib"
"github.com/dydxprotocol/v4-chain/protocol/lib/ante"
testmsgs "github.com/dydxprotocol/v4-chain/protocol/testutil/msgs"
listingtypes "github.com/dydxprotocol/v4-chain/protocol/x/listing/types"
vaulttypes "github.com/dydxprotocol/v4-chain/protocol/x/vault/types"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -76,7 +77,8 @@ func TestIsDydxMsg_Invalid(t *testing.T) {
// nolint:staticcheck
"/dydxprotocol.vault.MsgSetVaultQuotingParams": &vaulttypes.MsgSetVaultQuotingParams{},
// nolint:staticcheck
"/dydxprotocol.vault.MsgUpdateParams": &vaulttypes.MsgUpdateParams{},
"/dydxprotocol.vault.MsgUpdateParams": &vaulttypes.MsgUpdateParams{},
"/dydxprotocol.listing.MsgUpgradeIsolatedPerpetualToCross": &listingtypes.MsgUpgradeIsolatedPerpetualToCross{},
},
)
allMsgsMinusDydx := lib.MergeAllMapsMustHaveDistinctKeys(appmsgs.AllowMsgs, appmsgs.DisallowMsgs)
Expand Down
5 changes: 4 additions & 1 deletion protocol/lib/ante/unsupported_msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
gov "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govbeta "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
listingtypes "github.com/dydxprotocol/v4-chain/protocol/x/listing/types"
vaulttypes "github.com/dydxprotocol/v4-chain/protocol/x/vault/types"
)

Expand All @@ -25,7 +26,9 @@ func IsUnsupportedMsg(msg sdk.Msg) bool {
// nolint:staticcheck
*vaulttypes.MsgSetVaultQuotingParams,
// nolint:staticcheck
*vaulttypes.MsgUpdateParams:
*vaulttypes.MsgUpdateParams,
// WIP
*listingtypes.MsgUpgradeIsolatedPerpetualToCross:
return true
}
return false
Expand Down

0 comments on commit c1edfaf

Please sign in to comment.