Skip to content

Commit

Permalink
fix(x/auth): fix multi file tx reading
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 11, 2024
1 parent ae9ddff commit 3f9b92a
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)); err != nil {
if _, err := buf.WriteString(string(bytes) + "\n"); err != nil { // scanner expects newline delimited txs
return nil, fmt.Errorf("couldn't write to merged file: %w", err)
}
}
Expand Down

0 comments on commit 3f9b92a

Please sign in to comment.