Skip to content

Commit 32cdb9d

Browse files
chore: simplify Bytes handling in revert errors (#12280)
1 parent 369d9b9 commit 32cdb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/anvil/src/eth/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,7 @@ fn ensure_return_ok(exit: InstructionResult, out: &Option<Output>) -> Result<Byt
34273427
let out = convert_transact_out(out);
34283428
match exit {
34293429
return_ok!() => Ok(out),
3430-
return_revert!() => Err(InvalidTransactionError::Revert(Some(out.0.into())).into()),
3430+
return_revert!() => Err(InvalidTransactionError::Revert(Some(out)).into()),
34313431
reason => Err(BlockchainError::EvmError(reason)),
34323432
}
34333433
}

0 commit comments

Comments
 (0)