From 96854f9f0f46f6c4102a810e1c444cf778a257cf Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 13 Sep 2024 21:04:36 +0200 Subject: [PATCH] fix: actually use `RevmBytecode::new_raw_checked` (#10899) --- crates/primitives-traits/src/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }