Skip to content

Commit

Permalink
fix: eth_call for previous block hashes (#556)
Browse files Browse the repository at this point in the history
* fix: eth_call for previous block hashes

* fix: formatting
  • Loading branch information
atanmarko authored Aug 28, 2024
1 parent 32a6ba7 commit 85e72f2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zero_bin/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,14 @@ where
// We use that execution not to produce a new contract bytecode - instead, we
// return hashes. To look at the code use `cast disassemble <bytecode>`.
let bytes = cached_provider
.get_provider().await?
.get_provider()
.await?
.raw_request::<_, Bytes>(
"eth_call".into(),
(json!({"input": "0x60005B60010180430340816020025280610101116300000002576120205FF3"}), target_block_number),
(
json!({"data": "0x60005B60010180430340816020025280610101116300000002576120205FF3"}),
&format!("{:#x}", target_block_number),
),
)
.await?;

Expand Down

0 comments on commit 85e72f2

Please sign in to comment.