From 9ae99ade2787aac863a923540d7f8484297c654c Mon Sep 17 00:00:00 2001 From: Ruaridh Date: Tue, 21 Jul 2020 21:23:40 +0100 Subject: [PATCH] fix bep3 calc-swapid address parsing (#611) --- x/bep3/client/cli/query.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x/bep3/client/cli/query.go b/x/bep3/client/cli/query.go index 5e4d9846..0cef3abc 100644 --- a/x/bep3/client/cli/query.go +++ b/x/bep3/client/cli/query.go @@ -109,7 +109,10 @@ func QueryCalcSwapIDCmd(queryRoute string, cdc *codec.Codec) *cobra.Command { if err != nil { return err } - sender := sdk.AccAddress(args[1]) + sender, err := sdk.AccAddressFromBech32(args[1]) + if err != nil { + return err + } senderOtherChain := args[2] // Calculate swap ID and convert to human-readable string