mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
fix bep3 calc-swapid address parsing (#611)
This commit is contained in:
parent
86c0225174
commit
9ae99ade27
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user