fix bep3 calc-swapid address parsing (#611)

This commit is contained in:
Ruaridh 2020-07-21 21:23:40 +01:00 committed by GitHub
parent 86c0225174
commit 9ae99ade27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,10 @@ func QueryCalcSwapIDCmd(queryRoute string, cdc *codec.Codec) *cobra.Command {
if err != nil { if err != nil {
return err return err
} }
sender := sdk.AccAddress(args[1]) sender, err := sdk.AccAddressFromBech32(args[1])
if err != nil {
return err
}
senderOtherChain := args[2] senderOtherChain := args[2]
// Calculate swap ID and convert to human-readable string // Calculate swap ID and convert to human-readable string