From 42f98a09ae42ce048d1b85d0e4cac1ad0a90da85 Mon Sep 17 00:00:00 2001 From: Dima V <50062893+typ3c4t@users.noreply.github.com> Date: Wed, 11 Jan 2023 05:58:26 -0800 Subject: [PATCH] Update evm/src/bn254.rs Co-authored-by: Jacqueline Nabaglo --- evm/src/bn254.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/bn254.rs b/evm/src/bn254.rs index 01151ca7..28bc27fb 100644 --- a/evm/src/bn254.rs +++ b/evm/src/bn254.rs @@ -59,7 +59,7 @@ pub fn twisted_curve_generator() -> TwistedCurve { ] } -const ZERO: Fp = U256([0, 0, 0, 0]); +const ZERO: Fp = U256::zero(); fn embed_fp2(x: Fp) -> Fp2 { [x, ZERO]