Open winsvega opened 2 days ago
to reproduce
make a test with this bytecode
def test_blockhash_bug(state_test: StateTestFiller, pre: Alloc):
"""
comment
"""
contract = pre.deploy_contract(code=Op.BLOCKHASH(0))
tx = Transaction(
sender=pre.fund_eoa(),
gas_limit=500_000_000,
gas_price=10,
to=contract,
data=b"",
value=0,
protected=False,
)
state_test(env=Environment(), pre=pre, post={}, tx=tx)
here is the evmdump http://retesteth.ethdevops.io/temp/pyspecs/frontier__scenarios__test_scenarios__test_blockhash_bug/
I found the issue of at least one of the cases the eels resover reports an error
so if a state test uses blockhash opcode it causes pydantic to panic and eels resolver makes issues in the logs. which is actually we should report an error. if a state test mode uses blockhash opcode it should be a blockchain test as we agreed to remove fake hash caluclations from t8n