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

feat: add gasprice to tx object namespace #2624

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

skellet0r
Copy link
Contributor

What I did

Add gasprice to tx namespace

How to verify it

Check test

Description for the changelog

feat: add gasprice to tx object namespace

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@@ -25,6 +25,7 @@ Name Type Value
``msg.sender`` ``address`` Sender of the message (current call)
``msg.value`` ``uint256`` Number of wei sent with the message
``tx.origin`` ``address`` Sender of the transaction (full call chain)
``tx.gasprice`` ``uint256`` Gas price of current transaction in wei
Copy link
Member

Choose a reason for hiding this comment

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

What is this set to post-EIP1559?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For 1559 (type 2) txs, it'll just match BASEFEE, but for legacy txs it'll be whatever gasprice was set when the tx was built.

https://eips.ethereum.org/EIPS/eip-1559#gasprice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mainly useful for EVM chains that don't support LONDON yet

Copy link
Member

Choose a reason for hiding this comment

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

perfect

@fubuloubu fubuloubu merged commit 284b1e3 into vyperlang:master Jan 27, 2022
tserg pushed a commit to tserg/vyper that referenced this pull request Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants