diff --git a/crates/primitives-traits/src/account.rs b/crates/primitives-traits/src/account.rs index 99a7a089af..754b989a3f 100644 --- a/crates/primitives-traits/src/account.rs +++ b/crates/primitives-traits/src/account.rs @@ -65,7 +65,7 @@ impl Bytecode { /// Returns an error on incorrect Bytecode format. #[inline] pub fn new_raw_checked(bytecode: Bytes) -> Result { - Ok(Self(RevmBytecode::new_raw(bytecode))) + RevmBytecode::new_raw_checked(bytecode).map(Self) } }