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

Missing type field in transaction objects #4248

Closed
JosephK95 opened this issue Aug 10, 2022 · 0 comments · Fixed by #4364
Closed

Missing type field in transaction objects #4248

JosephK95 opened this issue Aug 10, 2022 · 0 comments · Fixed by #4364
Assignees
Labels
snack Smaller coding task - less than a day for an experienced dev

Comments

@JosephK95
Copy link

Description

According to the Ethereum API specification, type field in transaction object is mandatory. However, it seems that Besu does not have the field when returning a transaction object.
(Specification link: https://github.com/ethereum/execution-apis)

Expected behavior:
Besu should return a transaction object of the following form:

{
  ...
  value: '0',
  type: 0,
  v: '0x42',
  r: '0xe60a9bbb92a74e167c3b49900891dc181d6568ee473b923ba7b752a6025b011b',
  s: '0x594dc4b227cb453b697c67a175b50f1ac4ea4578dba2f91abed8b863bbff62d3'
}

Actual behavior:
Besu returns a transaction object without type field:

{
  ...
  value: '0',
  v: '0x42',
  r: '0xe60a9bbb92a74e167c3b49900891dc181d6568ee473b923ba7b752a6025b011b',
  s: '0x594dc4b227cb453b697c67a175b50f1ac4ea4578dba2f91abed8b863bbff62d3'
}

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 snack Smaller coding task - less than a day for an experienced dev label Aug 15, 2022
@daniellehrner daniellehrner self-assigned this Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snack Smaller coding task - less than a day for an experienced dev
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants