ethereum / hevm

symbolic EVM evaluator
https://hevm.dev
GNU Affero General Public License v3.0
235 stars 48 forks source link

Fixing fetching RPC #515

Closed msooseth closed 1 week ago

msooseth commented 3 months ago

Description

This issue: https://github.com/ethereum/hevm/issues/490 seems to be caused by some RPC failure. This PR seems to fix it, although in ways unknown to even me.

I don't know how to check via some test that this is not accidentally broken by a later commit. This PR definitely fixes the bug with:

cabal run exe:hevm -- symbolic --rpc $ETH_RPC_URL --address "0x2A8e1E676Ec238d8A992307B495b45B3fEAa5e86" --assertions '[0x01, 0x11]'

In the sense that RPC doesn't fail any more, which is the point here (symbolic interpretation issues are a different issue). If anyone has an idea how to write a test for this, let me know.

Checklist