From c1b3620beacc2eda04ecc5b0fa8083abcb49444f Mon Sep 17 00:00:00 2001 From: IAvecilla Date: Thu, 19 Sep 2024 12:31:10 -0300 Subject: [PATCH] Use bytecode of default account for evm simulator in gas test sc --- core/bin/system-constants-generator/src/utils.rs | 2 +- core/lib/types/src/system_contracts.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/bin/system-constants-generator/src/utils.rs b/core/bin/system-constants-generator/src/utils.rs index 265cc7580fa..ac4d66185e3 100644 --- a/core/bin/system-constants-generator/src/utils.rs +++ b/core/bin/system-constants-generator/src/utils.rs @@ -75,7 +75,7 @@ pub static GAS_TEST_SYSTEM_CONTRACTS: Lazy = Lazy::new(|| { let bytecode = read_sys_contract_bytecode("", "DefaultAccount", ContractLanguage::Sol); let hash = hash_bytecode(&bytecode); - let mut evm_simulator_bytecode = vec![]; + let mut evm_simulator_bytecode = bytecode.clone(); let mut evm_simulator_hash = H256::from_str("0x01000563374c277a2c1e34659a2a1e87371bb6d852ce142022d497bfb50b9e32") .unwrap(); diff --git a/core/lib/types/src/system_contracts.rs b/core/lib/types/src/system_contracts.rs index 9f2d328d542..f88e24e21ca 100644 --- a/core/lib/types/src/system_contracts.rs +++ b/core/lib/types/src/system_contracts.rs @@ -230,6 +230,7 @@ pub fn get_system_smart_contracts_from_dir(path: PathBuf) -> Vec Vec