Skip to content

Commit

Permalink
Updated parser to use new version of dummy calls
Browse files Browse the repository at this point in the history
  • Loading branch information
BGluth committed Oct 5, 2023
1 parent f53f11c commit 5bc0a2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parser/src/plonky2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{
collections::{HashMap, HashSet},
fmt::{Display, Formatter},
iter::once,
str::FromStr,
str::FromStr, ops::Deref,
};

use eth_trie_utils::{
Expand Down Expand Up @@ -328,7 +328,7 @@ impl EdgeBlockTrace {
TxnProofGenIR::create_dummy(b_height, 1),
],
1 => {
tx_proof_gen_ir.push(tx_proof_gen_ir[0].dummy_with_at(b_height, 1));
tx_proof_gen_ir.push(tx_proof_gen_ir[0].dummy_with_at(b_height, 1,));
tx_proof_gen_ir
}
_ => tx_proof_gen_ir,
Expand Down Expand Up @@ -670,7 +670,7 @@ impl EdgeBlockTrace {
}

fn add_indexed_node_to_trie(trie: &mut HashedPartialTrie, node: Vec<u8>, txn_idx: usize) {
trie.insert(txn_idx as u64, node)
trie.insert(txn_idx as u64, rlp::encode(&node).deref())
}

pub fn num_txns(&self) -> usize {
Expand Down

0 comments on commit 5bc0a2f

Please sign in to comment.