Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 11, 2024
1 parent 3f9b92a commit 214db87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/auth/client/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func ReadTxsFromInput(txCfg client.TxConfig, filenames ...string) (scanner *Batc
return nil, fmt.Errorf("couldn't read %s: %w", f, err)
}

if _, err := buf.WriteString(string(bytes) + "\n"); err != nil { // scanner expects newline delimited txs
if _, err := buf.WriteString(strings.ReplaceAll(string(bytes), "\n", "") + "\n"); err != nil { // scanner expects ONE newline per tx
return nil, fmt.Errorf("couldn't write to merged file: %w", err)
}
}
Expand Down

0 comments on commit 214db87

Please sign in to comment.