Skip to content

Commit

Permalink
fix: 🚑 converts math to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4139 committed May 4, 2023
1 parent cc06bb9 commit 64f1d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func newBuildCreateValidatorMsg(clientCtx client.Context, txf tx.Factory, fs *fl
nodeID, _ := fs.GetString(FlagNodeID)

if nodeID != "" && ip != "" {
txf = txf.WithMemo(fmt.Sprintf("%s@%s:%d", nodeID, ip, port))
txf = txf.WithMemo(fmt.Sprintf("%s@%s:%d", nodeID, ip, port.Int64()))
}
}

Expand Down Expand Up @@ -621,7 +621,7 @@ func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorC
nodeID := config.NodeID

if nodeID != "" && ip != "" {
txBldr = txBldr.WithMemo(fmt.Sprintf("%s@%s:%d", nodeID, ip, port))
txBldr = txBldr.WithMemo(fmt.Sprintf("%s@%s:%d", nodeID, ip, port.Int64()))
}
}

Expand Down

0 comments on commit 64f1d32

Please sign in to comment.