Skip to content

Commit 73ac79f

Browse files
authored
fix(cast): read all lines for message to hash (#10671) (backport to 1.2.2) (#10672)
fix(cast): read all lines for message to hash (#10671)
1 parent b937eb3 commit 73ac79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cast/src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ pub async fn run_command(args: CastArgs) -> Result<()> {
627627
};
628628
}
629629
CastSubcommand::HashMessage { message } => {
630-
let message = stdin::unwrap_line(message)?;
630+
let message = stdin::unwrap(message, false)?;
631631
sh_println!("{}", eip191_hash_message(message))?
632632
}
633633
CastSubcommand::SigEvent { event_string } => {

0 commit comments

Comments
 (0)