Created
June 10, 2020 18:22
-
-
Save rishub/b33945fe2f903aab54e56c95831cf189 to your computer and use it in GitHub Desktop.
Revisions
-
rishub created this gist
Jun 10, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ For example, previously an eth_call may have returned this: ``` {'id': 2, 'jsonrpc': '2.0', 'result': '0x'} ``` And now under 1.9.15, it will return this: ``` {'error': {'code': -32000, 'message': 'insufficient funds for gas * price + value'}, 'id': 2, 'jsonrpc': '2.0'} ``` Another example is for reverts, previous results would be encoded with an error hex like this: ``` {'id': 1337, 'jsonrpc': '2.0', 'result': '0x08c379a00000...} ``` In 1.9.15, this now has a revert reason: ``` {'error': {'code': 3, 'data': '0x08c379a...', 'message': 'execution reverted: HAS_NEVER_OWNED_KEY'}, 'id': 1337, 'jsonrpc': '2.0'} ```