Skip to content

Commit

Permalink
fix bank encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed Jul 8, 2021
1 parent 37ad793 commit ff967d3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom/bank/wasm/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ func (WasmMsgParser) Parse(contractAddr sdk.AccAddress, wasmMsg wasmvmtypes.Cosm
return nil, sdkerrors.Wrap(wasm.ErrInvalidMsg, "Unknown variant of Bank")
}

if len(msg.Send.Amount) == 0 {
return nil, nil
}

toAddr, stderr := sdk.AccAddressFromBech32(msg.Send.ToAddress)
if stderr != nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Send.ToAddress)
Expand Down

0 comments on commit ff967d3

Please sign in to comment.