Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Only storage keys which change
Browse files Browse the repository at this point in the history
  • Loading branch information
miha-stopar committed Feb 15, 2024
1 parent 45582d1 commit 78899ef
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions bin/mpt-test/src/circuit/witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use std::{
time::Duration,
};

use ethers::core::utils;

use eth_types::{Field, ToScalar};

use ethers::{
Expand Down Expand Up @@ -317,15 +319,8 @@ impl<F: Field> Witness<F> {
println!("initial_values.len(): {}", initial_values.len());
println!("changed_values.len(): {}", changed_values.len());

for c in changed_values.iter() {
println!("{:?}", c);
println!("");
}

// let mut trie_modifications = initial_values;
// trie_modifications.append(&mut changed_values);

let trie_modifications = changed_values;
let mut trie_modifications = initial_values;
trie_modifications.append(&mut changed_values);

Ok(Transforms {
block_no,
Expand Down

0 comments on commit 78899ef

Please sign in to comment.