besu icon indicating copy to clipboard operation
besu copied to clipboard

eth_getProof - storageProof key has different format

Open macfarla opened this issue 3 years ago • 0 comments

Hive test result - for eth_getProof besu has key 0x1 and geth has 0x01

  • Note for balance and nonce we both have 0x1
  • does this need changing
  • does the spec define this detail
	response differs from expected:
 {
   "id": 5,
   "jsonrpc": "2.0",
   "result": {
     "accountProof": [
       : "0xf8718080808080a0bc55bb35324913804e0799a4c50de66f54fefa67937210939e48cbd1cfa702c580a0457ae8d978cd387f5332f978f5653226588b6cc76a355fc5977cd4325ffcff78a053382cdfd5e86005e120dfe636ad4c4a83bd28857e463f23308c8c3cf94c3c3a8080808080808080",
       : "0xf869a0335649db80be637d281db0cc5896b0ff9869d08379a80fdc38dd073bba633949b846f8440101a08afc95b7d18a226944b9c2070b6bda1c3a36afcc3730429d47579c94b9fe5850a0ce92c756baff35fa740c3557c1a971fd24d2d35b7c8e067880d50cd86bb0bc99"
     ],
     "address": "0xaa00000000000000000000000000000000000000",
     "balance": "0x1",
     "codeHash": "0xce92c756baff35fa740c3557c1a971fd24d2d35b7c8e067880d50cd86bb0bc99",
     "nonce": "0x1",
     "storageHash": "0x8afc95b7d18a226944b9c2070b6bda1c3a36afcc3730429d47579c94b9fe5850",
     "storageProof": [
       0: {
-        "key": "0x1",
+        "key": "0x01",

macfarla avatar Oct 10 '22 04:10 macfarla