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, |
|
} |
|
} |
In the following code, you project miss the validation of the sdk.Coins which is a risky issue
fee-abstraction/x/feeabs/types/msg.go
Lines 106 to 119 in 37bdca2