pub async fn pretty_calldata(
calldata: impl AsRef<str>,
offline: bool,
) -> Result<PossibleSigs>
Expand description
Pretty print calldata and if available, fetch possible function signatures.
use foundry_common::selectors::pretty_calldata;
let pretty_data = pretty_calldata(
"0x70a08231000000000000000000000000d0074f4e6490ae3f888d1d4f7e3e43326bd3f0f5".to_string(),
false,
)
.await?;
println!("{}", pretty_data);