fix: Make get_block_storage_changes public (#214)

* fix: Make get_block_storage_changes public

* Make RpcTraceData caller optional

* feat: Create function to decode list of addresses
This commit is contained in:
tvinagre
2025-06-16 18:40:39 -03:00
committed by GitHub
parent 7da01c745b
commit 3f1beeab7c
4 changed files with 25 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ use crate::{
/// ## Warning
/// ⚠️ This function *only* works if the **extended block model** is available,
/// more [here](https://streamingfastio.medium.com/new-block-model-to-accelerate-chain-integration-9f65126e5425)
fn get_block_storage_changes(block: &eth::v2::Block) -> Vec<TransactionStorageChanges> {
pub fn get_block_storage_changes(block: &eth::v2::Block) -> Vec<TransactionStorageChanges> {
if block.detail_level != Into::<i32>::into(DetailLevel::DetaillevelExtended) {
panic!("Only extended blocks are supported");
}