enable vesting msgs

This commit is contained in:
0xsatoshi 2024-06-20 00:13:31 +08:00 committed by 0g-wh
parent 5f4f1851cb
commit 5f9325c2a0

View File

@ -4,7 +4,6 @@ import (
errorsmod "cosmossdk.io/errors" errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
) )
var _ sdk.AnteDecorator = VestingAccountDecorator{} var _ sdk.AnteDecorator = VestingAccountDecorator{}
@ -17,9 +16,9 @@ type VestingAccountDecorator struct {
func NewVestingAccountDecorator() VestingAccountDecorator { func NewVestingAccountDecorator() VestingAccountDecorator {
return VestingAccountDecorator{ return VestingAccountDecorator{
disabledMsgTypeUrls: []string{ disabledMsgTypeUrls: []string{
sdk.MsgTypeURL(&vesting.MsgCreateVestingAccount{}), // sdk.MsgTypeURL(&vesting.MsgCreateVestingAccount{}),
sdk.MsgTypeURL(&vesting.MsgCreatePermanentLockedAccount{}), // sdk.MsgTypeURL(&vesting.MsgCreatePermanentLockedAccount{}),
sdk.MsgTypeURL(&vesting.MsgCreatePeriodicVestingAccount{}), // sdk.MsgTypeURL(&vesting.MsgCreatePeriodicVestingAccount{}),
}, },
} }
} }