This PR includes various fixes from both me and @ckeenan. They include:
Outputting the gas costs in the log when a contract is created
Returning errors when there are vm exceptions, so you know exactly which transaction or call caused the issue
Fixing a bug where block.timestamp should have been in seconds vs milliseconds (@ckeenan)
Setting block headers in createBlock(), otherwise block.timestamp isn't available to ethereumjs-vm (@ckeenan)
Set tx_params.from to this.coinbase if null for eth_call's (@ckeenan)
Inject defaultBlock "latest" into eth_call params if it's not already there. This was missing during batched eth_calls (and needed to be fixed at the jayson level). Now batches work as expected. (@ckeenan)
This PR includes various fixes from both me and @ckeenan. They include:
block.timestamp
should have been in seconds vs milliseconds (@ckeenan)tx_params.from
tothis.coinbase
if null foreth_call
's (@ckeenan)"latest"
into eth_call params if it's not already there. This was missing during batched eth_calls (and needed to be fixed at the jayson level). Now batches work as expected. (@ckeenan)See https://github.com/tcoulter/EtherSim/pull/1 for discussion of @ckeenan's work.