pub async fn fetch_contracts_bytecode_via_rpc<N: Network, P: Provider<N>>(
provider: &P,
result: &TraceResult,
block: BlockId,
) -> Result<AddressHashMap<Bytes>>Expand description
Fetches the runtime bytecode of the addresses seen in result over RPC.
The RPC trace path (cast call --debug-trace-call) has no local executor to read code
from, so the bytecode needed to match local artifacts is fetched from the node with
eth_getCode. Addresses whose code cannot be fetched are skipped with a warning.