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

Invalid key field when using getProof API #4249

Closed
JosephK95 opened this issue Aug 10, 2022 · 1 comment
Closed

Invalid key field when using getProof API #4249

JosephK95 opened this issue Aug 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JosephK95
Copy link

Description

When we execute getProof API, it returns an array of storage-entry objects as requested. According to the Ethereum API specification, the key field in the entry object should conform to ^0x([0-9a-f][0-9a-f]){0,32}$ regex pattern. However, it seems that Besu returns a non-conforming value.
(Specification link: https://github.com/ethereum/execution-apis)

Expected behavior:

{ 
  ...
  storageProof: [ { key: '0x2', value: '0x0', ... } ]
}

Actual behavior:

{ 
  ...
  storageProof: [ { key: '2', value: '0x0', ... } ]
}

Frequency:
Always

Versions (Add all that apply)

  • Software version: besu/v22.4.4/linux-x86_64/openjdk-java-16
  • OS Name & Version: Ubuntu 20.04.4 LTS
@iamhsk iamhsk added the bug Something isn't working label Aug 15, 2022
@non-fungible-nelson
Copy link
Contributor

Hi there - is this bug present on Besu v22.7.0? @fab-10 @daniellehrner is this something we addressed in Hive testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants