From 6d60b97b1a503379447b791d4f012515b34d548b Mon Sep 17 00:00:00 2001 From: Mathieu <60658558+enitrat@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:40:44 +0200 Subject: [PATCH] feat: expose ecadd ecmul in cairo1helpers (#916) * feat: expose ecadd ecmul in cairo1helpers' * fmt --- crates/contracts/src/cairo1_helpers.cairo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/contracts/src/cairo1_helpers.cairo b/crates/contracts/src/cairo1_helpers.cairo index da114ea8e..11b29fa38 100644 --- a/crates/contracts/src/cairo1_helpers.cairo +++ b/crates/contracts/src/cairo1_helpers.cairo @@ -120,6 +120,8 @@ mod embeddable_impls { use core::{starknet, starknet::SyscallResultTrait}; use evm::errors::EVMError; use evm::precompiles::blake2f::Blake2f; + use evm::precompiles::ec_add::EcAdd; + use evm::precompiles::ec_mul::EcMul; use evm::precompiles::ec_recover::EcRecover; use evm::precompiles::identity::Identity; use evm::precompiles::modexp::ModExp; @@ -138,6 +140,8 @@ mod embeddable_impls { 2 => Sha256::exec(data), 3 | 4 => Result::Err(EVMError::NotImplemented), 5 => ModExp::exec(data), + 6 => EcAdd::exec(data), + 7 => EcMul::exec(data), _ => Result::Err(EVMError::NotImplemented), }; match result {