Misc features/improvements (#138)

* Implement various needed features and improvements

* Reorder the metadata struct

* Format comments
This commit is contained in:
Omar
2025-08-13 16:50:06 +03:00
committed by GitHub
parent 46aea0890d
commit 5a11f44673
9 changed files with 109 additions and 67 deletions
+9 -4
View File
@@ -11,8 +11,8 @@ use alloy::network::{Ethereum, TransactionBuilder};
use alloy::primitives::U256;
use alloy::rpc::types::TransactionReceipt;
use alloy::rpc::types::trace::geth::{
CallFrame, GethDebugBuiltInTracerType, GethDebugTracerType, GethDebugTracingOptions, GethTrace,
PreStateConfig,
CallFrame, GethDebugBuiltInTracerType, GethDebugTracerConfig, GethDebugTracerType,
GethDebugTracingOptions, GethTrace, PreStateConfig,
};
use alloy::{
primitives::Address,
@@ -263,6 +263,11 @@ where
tracer: Some(GethDebugTracerType::BuiltInTracer(
GethDebugBuiltInTracerType::CallTracer,
)),
tracer_config: GethDebugTracerConfig(serde_json::json! {{
"onlyTopCall": true,
"withLog": false,
"withReturnData": false
}}),
..Default::default()
},
)
@@ -528,7 +533,7 @@ where
) -> anyhow::Result<()> {
let Some(instance) = balance_assertion
.address
.strip_prefix(".address")
.strip_suffix(".address")
.map(ContractInstance::new)
else {
return Ok(());
@@ -588,7 +593,7 @@ where
) -> anyhow::Result<()> {
let Some(instance) = storage_empty_assertion
.address
.strip_prefix(".address")
.strip_suffix(".address")
.map(ContractInstance::new)
else {
return Ok(());