EIP-210: Fixes for blockhash contracts (#1094)
* EIP-210: Fix blockhash contract for block number 1
This fixes the issue in the contract when executed from SYSTEM account at block 1. Then the number of the previous block is 0 and the contract executes the loop forever.
* EIP-210: Correctly handle argument with negative value
Fix fixes the issue in the blockhash contract where the negative value of the argument is not properly handled.
GitHub Diff