From 97c57661cc5e528123d4944cac44d5489b0ea37c Mon Sep 17 00:00:00 2001 From: Marcos Nicolau Date: Tue, 3 Sep 2024 18:10:46 -0300 Subject: [PATCH] Enforce default_l1_batch fee account --- .../lib/multivm/src/versions/era_vm/tests/tester/vm_tester.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/multivm/src/versions/era_vm/tests/tester/vm_tester.rs b/core/lib/multivm/src/versions/era_vm/tests/tester/vm_tester.rs index a9be55109f14..dc5f30458951 100644 --- a/core/lib/multivm/src/versions/era_vm/tests/tester/vm_tester.rs +++ b/core/lib/multivm/src/versions/era_vm/tests/tester/vm_tester.rs @@ -276,6 +276,8 @@ impl VmTesterBuilder { pub(crate) fn default_l1_batch(number: L1BatchNumber) -> L1BatchEnv { let timestamp = 0xabcd; + let bytes = [2; 32]; + let fee_account = Account::new(K256PrivateKey::from_bytes(bytes.into()).unwrap()); L1BatchEnv { previous_batch_hash: None, number, @@ -284,7 +286,7 @@ pub(crate) fn default_l1_batch(number: L1BatchNumber) -> L1BatchEnv { 50_000_000_000, // 50 gwei 250_000_000, // 0.25 gwei ), - fee_account: Address::random(), + fee_account: fee_account.address(), enforced_base_fee: None, first_l2_block: L2BlockEnv { number: 1,