chore(tx): use buffer byte slice method directly (#24350)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
healthyyyoung
2025-04-07 13:09:44 +00:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent ed70bf336f
commit 61f4c3b71b
+1 -1
View File
@@ -121,7 +121,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.Write(bytes); err != nil {
return nil, fmt.Errorf("couldn't write to merged file: %w", err)
}
}