diff --git a/crates/vm/levm/src/precompiles.rs b/crates/vm/levm/src/precompiles.rs index 3bfaa7c70e0..4ac2eab96dc 100644 --- a/crates/vm/levm/src/precompiles.rs +++ b/crates/vm/levm/src/precompiles.rs @@ -834,9 +834,11 @@ pub fn bn254_g1_mul(g1: G1, scalar: U256) -> Result { Fq::from_slice(&g1.1.to_big_endian()).map_err(|_| PrecompileError::ParsingInputError)?, ); - let g1: G1 = AffineG1::new(g1_x, g1_y) - .map_err(|_| PrecompileError::InvalidPoint)? - .into(); + let g1 = AffineG1::new(g1_x, g1_y).map_err(|_| PrecompileError::InvalidPoint)?; + + // Small difference between the patched versions of substrate-bn + #[cfg(feature = "zisk")] + let g1: G1 = g1.into(); let scalar = Fr::from_slice(&scalar.to_big_endian()).map_err(|_| PrecompileError::ParsingInputError)?;