Skip to content

Commit

Permalink
Use bytecode of default account for the evm simulator if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Sep 19, 2024
1 parent 294aaaa commit 5404b42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,12 @@ impl BaseSystemContracts {
let hash = hash_bytecode(&bytecode);

let default_aa = SystemContractCode {
code: bytes_to_be_words(bytecode),
code: bytes_to_be_words(bytecode.clone()),
hash,
};

let mut evm_simulator_bytecode = vec![];
// If evm simulator is not enabled, use the default account bytecode and hash.
let mut evm_simulator_bytecode = bytecode;
let mut evm_simulator_hash =
// H256::from_str("0x0100000000000000000000000000000000000000000000000000000000000000")
H256::from_str("0x01000563374c277a2c1e34659a2a1e87371bb6d852ce142022d497bfb50b9e32")
Expand Down

0 comments on commit 5404b42

Please sign in to comment.