Skip to content

Missing sdk.Coins Validate Process for msg.go #225

Description

@Hellobloc

In the following code, you project miss the validation of the sdk.Coins which is a risky issue

func (m MsgFundFeeAbsModuleAccount) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(m.Sender)
if err != nil {
return err
}
return nil
}
func NewMsgFundFeeAbsModuleAccount(sender sdk.AccAddress, amount sdk.Coins) *MsgFundFeeAbsModuleAccount {
return &MsgFundFeeAbsModuleAccount{
Sender: sender.String(),
Amount: amount,
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions