Skip to content

Commit

Permalink
dev: disable cairo1_helpers modexp
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Sep 26, 2024
1 parent 00a16db commit 6787297
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/contracts/src/cairo1_helpers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ pub mod embeddable_impls {
use evm::errors::EVMError;
use evm::precompiles::EcAdd;
use evm::precompiles::EcMul;
use evm::precompiles::ModExp;
use evm::precompiles::Sha256;
use utils::helpers::U256Trait;

Expand All @@ -137,7 +136,7 @@ pub mod embeddable_impls {
1 => Result::Err(EVMError::NotImplemented),
2 => Sha256::exec(data),
3 | 4 => Result::Err(EVMError::NotImplemented),
5 => ModExp::exec(data),
5 => Result::Err(EVMError::NotImplemented),
6 => EcAdd::exec(data),
7 => EcMul::exec(data),
_ => Result::Err(EVMError::NotImplemented),
Expand Down

0 comments on commit 6787297

Please sign in to comment.