You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would be nice to have an example on how to call smart contracts from within the EVM using an equivalent eth_call function.
I can add an example that tracks ERC20 balances by looking at addresses in the ERC20 transfer events, but I would need to know if this is the best way to call contracts:
I came up with this looking at old reth issues/PRs and had to end up changing the tx_env manually because fill_tx_env doesn't support plain (unsigned) transactions anymore.
Also I'm not sure if there's an easier way to have an EVM running at a specific block by just using the provider instead of using StateBuilder, creating an EVM config etc.
The text was updated successfully, but these errors were encountered:
0xalex88
changed the title
ExEx EVM calling contracts
ExEx calling contracts to track state
Sep 18, 2024
Hi,
would be nice to have an example on how to call smart contracts from within the EVM using an equivalent eth_call function.
I can add an example that tracks ERC20 balances by looking at addresses in the ERC20 transfer events, but I would need to know if this is the best way to call contracts:
I came up with this looking at old reth issues/PRs and had to end up changing the
tx_env
manually because fill_tx_env doesn't support plain (unsigned) transactions anymore.Also I'm not sure if there's an easier way to have an EVM running at a specific block by just using the provider instead of using
StateBuilder
, creating an EVM config etc.The text was updated successfully, but these errors were encountered: