Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix storage key format for eth_getProof #4564

Conversation

Gabriel-Trintinalia
Copy link
Contributor

@Gabriel-Trintinalia Gabriel-Trintinalia commented Oct 27, 2022

Signed-off-by: Gabriel Trintinalia gabriel.trintinalia@consensys.net

PR description

Follow EIP-1474 spec - each byte must be represented using two hex digits

Fixed Issue(s)

fixes #4504

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@consensys.net>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@consensys.net>
@Gabriel-Trintinalia Gabriel-Trintinalia marked this pull request as ready for review October 27, 2022 06:09
@Gabriel-Trintinalia Gabriel-Trintinalia marked this pull request as draft October 28, 2022 21:17
@Gabriel-Trintinalia Gabriel-Trintinalia added the TeamRevenant GH issues worked on by Revenant Team label Nov 14, 2022
…sonrpc/internal/results/proof/StorageEntryProof.java

Co-authored-by: Danno Ferrin <danno.ferrin@shemnon.com>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
…sonrpc/internal/methods/EthGetProofTest.java

Co-authored-by: Danno Ferrin <danno.ferrin@shemnon.com>
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
@Gabriel-Trintinalia Gabriel-Trintinalia changed the title Do not remove leading zeros - matching geth behaviour Remove leading zeros - EIP-1474 Dec 6, 2022
@Gabriel-Trintinalia Gabriel-Trintinalia changed the title Remove leading zeros - EIP-1474 Remove leading zeros Dec 6, 2022
@Gabriel-Trintinalia Gabriel-Trintinalia changed the title Remove leading zeros Remove leading zeros for eth_getProof Dec 6, 2022
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@gmail.com>
@Gabriel-Trintinalia Gabriel-Trintinalia marked this pull request as ready for review December 6, 2022 03:08
@Gabriel-Trintinalia
Copy link
Contributor Author

Following eip-1474 spec

@Gabriel-Trintinalia Gabriel-Trintinalia changed the title Remove leading zeros for eth_getProof Fix storage Key format for eth_getProof Dec 6, 2022
@Gabriel-Trintinalia Gabriel-Trintinalia changed the title Fix storage Key format for eth_getProof Fix storage key format for eth_getProof Dec 6, 2022
@Gabriel-Trintinalia Gabriel-Trintinalia removed the TeamRevenant GH issues worked on by Revenant Team label Dec 6, 2022
@@ -20,7 +20,7 @@
"nonce" : "0x0",
"storageHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"storageProof" : [ {
"key" : "0x347",
"key" : "0x0347",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gabriel-Trintinalia Gabriel-Trintinalia merged commit 64a5d74 into hyperledger:main Dec 6, 2022
Gabriel-Trintinalia added a commit to Gabriel-Trintinalia/besu that referenced this pull request Dec 8, 2022
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
@Gabriel-Trintinalia Gabriel-Trintinalia deleted the 4504-storage-proof-do-not-remove-leading-zero branch December 12, 2022 02:24
ahamlat pushed a commit to ahamlat/besu that referenced this pull request Dec 18, 2022
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
macfarla pushed a commit to macfarla/besu that referenced this pull request Jan 10, 2023
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eth_getProof - storageProof key has different format
3 participants