Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Nov 27, 2023
1 parent c5e60e4 commit 0b4a990
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/auth/client/cli/tx_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ func makeSignBatchCmd() func(cmd *cobra.Command, args []string) error {
appendMessagesToSingleTx, _ := cmd.Flags().GetBool(flagAppend)
// Combines all tx msgs and create single signed transaction
if appendMessagesToSingleTx {
var feeAmount sdk.Coins
txBuilder := txCfg.NewTxBuilder()
msgs := make([]sdk.Msg, 0)
newGasLimit := uint64(0)
feeAmount := sdk.Coins{}

for scanner.Scan() {
unsignedStdTx := scanner.Tx()
Expand All @@ -131,8 +131,7 @@ func makeSignBatchCmd() func(cmd *cobra.Command, args []string) error {
// increment the gas
newGasLimit += fe.GetTx().GetGas()
// Add the fees
fees := fe.GetTx().GetFee()
for _, fee := range fees {
for _, fee := range fe.GetTx().GetFee() {
feeAmount = feeAmount.Add(fee)
}
// append messages
Expand Down

0 comments on commit 0b4a990

Please sign in to comment.