DavePearce / EvmTools

Various utilities for working with the Etherem Reference Tests.
Apache License 2.0
2 stars 0 forks source link

Missing End of Trace Output #20

Closed DavePearce closed 2 years ago

DavePearce commented 2 years ago

For the test stCreateTest/CREATE_ContractRETURNBigOffset.json we generate the following trace:

0:PUSH3, gas=0x5500000, stack=[]
4:PUSH3, gas=0x54ffffd, stack=[0x10000]
8:RETURN, gas=0x54ffffa, stack=[0x10000, 0x74ac2]
return(0x00...)

(where there are a lot of zeros in the return data)

However, the expected trace is missing the return(0x00...) for reasons unknown.

DavePearce commented 2 years ago

I think the issue here is that the piped output from Geth is either breaking, or is not being flushed properly.

DavePearce commented 2 years ago

The problem appears to be that it is generating an error from Geth as well. Namely:

error: max code size exceeded

I don't see this when running evm from the command-line, so its related to the fact that we have an outermost contract call?