Skip to content

Commit

Permalink
feat: expose ecadd ecmul in cairo1helpers (#916)
Browse files Browse the repository at this point in the history
* feat: expose ecadd ecmul in cairo1helpers'

* fmt
  • Loading branch information
enitrat authored Sep 6, 2024
1 parent ad32fc0 commit 6d60b97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/contracts/src/cairo1_helpers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 6d60b97

Please sign in to comment.