mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-15 17:35:18 -05:00
fix: actually use RevmBytecode::new_raw_checked (#10899)
This commit is contained in:
@@ -65,7 +65,7 @@ impl Bytecode {
|
||||
/// Returns an error on incorrect Bytecode format.
|
||||
#[inline]
|
||||
pub fn new_raw_checked(bytecode: Bytes) -> Result<Self, BytecodeDecodeError> {
|
||||
Ok(Self(RevmBytecode::new_raw(bytecode)))
|
||||
RevmBytecode::new_raw_checked(bytecode).map(Self)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user