Skip to content

Commit

Permalink
Use Identity precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Jan 2, 2025
1 parent 93f7e3b commit e4389de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions compiler_tester/src/vm/eravm/system_contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl SystemContracts {
"era-contracts/system-contracts/contracts/precompiles/SHA256.yul";

/// The `identity` system contract implementation path.
const PATH_IDENTITY: &'static str = "tests/solidity/simple/system/identity.sol:Identity";
const PATH_IDENTITY: &'static str = "era-contracts/system-contracts/contracts/precompiles/Identity.yul";

/// The `ecadd` system contract implementation path.
const PATH_ECADD: &'static str =
Expand Down Expand Up @@ -179,6 +179,12 @@ impl SystemContracts {
),
Self::PATH_ECMUL,
),
(
web3::types::Address::from_low_u64_be(
zkevm_opcode_defs::system_params::ADDRESS_IDENTITY.into(),
),
Self::PATH_IDENTITY,
),
(
web3::types::Address::from_low_u64_be(
zkevm_opcode_defs::ADDRESS_EVENT_WRITER.into(),
Expand All @@ -197,10 +203,6 @@ impl SystemContracts {

let solidity_system_contracts = vec![
(web3::types::Address::zero(), Self::PATH_EMPTY_CONTRACT),
(
web3::types::Address::from_low_u64_be(zkevm_opcode_defs::ADDRESS_IDENTITY.into()),
Self::PATH_IDENTITY,
),
(
web3::types::Address::from_low_u64_be(
zkevm_opcode_defs::ADDRESS_ACCOUNT_CODE_STORAGE.into(),
Expand Down

0 comments on commit e4389de

Please sign in to comment.