From d91db9cefe75b7ecec5e4638ce11631e13427592 Mon Sep 17 00:00:00 2001 From: garyschulte Date: Tue, 16 Aug 2022 11:35:07 -0700 Subject: [PATCH] getProof encoding fix for 4249 (#4261) * getProof encoding fix for 4249 Signed-off-by: garyschulte --- CHANGELOG.md | 1 + .../api/jsonrpc/internal/results/proof/StorageEntryProof.java | 2 +- .../ethereum/api/jsonrpc/internal/methods/EthGetProofTest.java | 2 ++ .../besu/ethereum/api/jsonrpc/eth/eth_getProof_blockHash.json | 2 +- .../ethereum/api/jsonrpc/eth/eth_getProof_blockHashObject.json | 2 +- .../api/jsonrpc/eth/eth_getProof_blockHashObjectCanonical.json | 2 +- .../jsonrpc/eth/eth_getProof_blockHashObjectCanonicalFalse.json | 2 +- .../besu/ethereum/api/jsonrpc/eth/eth_getProof_blockNumber.json | 2 +- .../api/jsonrpc/eth/eth_getProof_blockNumberObject.json | 2 +- .../besu/ethereum/api/jsonrpc/eth/eth_getProof_latest.json | 2 +- .../besu/ethereum/api/jsonrpc/eth/eth_getProof_pending.json | 2 +- 11 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c66b1501fdb..1d136811258 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ### Bug Fixes - Fixes off-by-one error for mainnet TTD fallback [#4223](https://github.com/hyperledger/besu/pull/4223) - Fix off-by-one error in AbstractRetryingPeerTask [#4254](https://github.com/hyperledger/besu/pull/4254) +- Fix encoding of key (short hex) in eth_getProof [#4261](https://github.com/hyperledger/besu/pull/4261) ## 22.7.0 diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/proof/StorageEntryProof.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/proof/StorageEntryProof.java index 08ceba3f96d..b01e83485fe 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/proof/StorageEntryProof.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/proof/StorageEntryProof.java @@ -39,7 +39,7 @@ public StorageEntryProof(final UInt256 key, final UInt256 value, final List