Skip to content

Commit

Permalink
feat: update base_fee storage location mirroring kakarot new strategy (
Browse files Browse the repository at this point in the history
…#778)

* feat: update base_fee storage location mirroring kakarot new strategy

* check fix

* trunk check fix
  • Loading branch information
enitrat authored Dec 3, 2024
1 parent 27cabf7 commit adead61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/ef-testing/src/evm_sequencer/evm_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ impl Evm for KakarotSequencer {
coinbase_address,
)?;

// Set the base fee.
// Set the base fee at index 'current_block'
let [low_fee, high_fee] = split_u256(base_fee);
let basefee_address = get_storage_var_address(KAKAROT_BASE_FEE, &[]);
let key = Felt::from_bytes_be_slice(b"current_block");
println!("key: {:?}", key);
let basefee_address = get_storage_var_address(KAKAROT_BASE_FEE, &[key]);
self.state_mut()
.set_storage_at(kakarot_address, basefee_address, low_fee.into())?;
self.state_mut().set_storage_at(
Expand Down

0 comments on commit adead61

Please sign in to comment.