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

New field tx_type #1901

Closed
coccoinomane opened this issue Nov 19, 2022 · 4 comments
Closed

New field tx_type #1901

coccoinomane opened this issue Nov 19, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@coccoinomane
Copy link
Contributor

coccoinomane commented Nov 19, 2022

Hi there!

Did you ever consider to add a tx_type field to differentiate between chains implementing EIP-1559 (tx_type=2) and those who don't (tx_type=1)?

It would be very useful for clients who need to send transactions on the chains, for example my project web3cli.

I am willing to make a PR if there's consensus on it 🙂

Cheers,
Cocco

@ligi ligi added the enhancement New feature or request label Nov 19, 2022
@ligi
Copy link
Member

ligi commented Nov 19, 2022

Yes - this is a good idea - I considered it but did not yet find a good way to define it. IMHO it should be more universal than just tx type.
Was then thinking something like

"features": ["EIP1559",..]

but then also realized we might need transition points (blocks?)

@coccoinomane
Copy link
Contributor Author

Why not something like this?

  "features": [
    {
      "name": "EIP1559",
      "since_block": 123,
      ...
    },
    ...
  ]

If needed, we can always add extra properties to 'feature' at a later time, without compromising backward compatibility.

@ligi
Copy link
Member

ligi commented Nov 20, 2022

yea - sometimes it might not be a block - but maybe this is enough for the MVP

@coccoinomane
Copy link
Contributor Author

Thanks @ligi for the quick commit!

I have made a pull request adding the EIP1559 feature to Avalanche 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants