Skip to content

Commit

Permalink
add log index to onchain event trie key
Browse files Browse the repository at this point in the history
  • Loading branch information
aditiharini committed Dec 10, 2024
1 parent 01431b6 commit 471b150
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/trie/merkle_trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl TrieKey {
key.extend_from_slice(&Self::for_fid(event.fid as u32));
key.push(event.r#type as u8);
key.extend_from_slice(&event.transaction_hash);
key.extend_from_slice(&event.log_index.to_be_bytes());
key
}

Expand Down

0 comments on commit 471b150

Please sign in to comment.