-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Rename tx.gas -> tx.gasLimit #2835
Conversation
Correction, I thought Nonetheless, my point is that it is a bad idea relying on Solidity notation in a Core EIP and should only use EVM opcodes, because Solidity may change any given time and its syntax is not governed by EIPs, but EVM opcodes are governed by EIPs. |
Is there an opcode for |
A quick glance at the yellow paper suggests there isn't an opcode for transaction gas limit. There is one for gas remaining, and one for block gas limit, but not one for transaction gas limit from what I can tell. |
Solidity can only expose things which have an opcode 😉 The "aptly" named opcode |
Btw that's why EIP-1803 proposes to rename those opcodes for clarity. |
While I agree that using a mix of opcodes, definitions, and solidity is bad, I still think this PR is an iterative improvement over the previous state of things so I stand by my approval of it. As far as how to improve things further, I think the best option is to just have every term be added to the definitions list in the specification. In this case, we would need to add a |
I should have read the EIP carefully before commenting. I agree there's no need to even use EVM opcodes here as this is functionality outside of the EVM. And this also means using Solidity notiation is very confusing to the reader. I'd agree to use only definitions and avoid EVM/Solidity here. |
As for merging this, I think the actual authors shall approve and merge, and it should not be forcefully merged by an editor. Shall the authors not want to merge this, the disagreement with the notation can still be voiced during the last call process. |
Totally agree, the only reason I approved it is because I have been pretty active with 1559 and I wanted to signal my agreement. It was an approval from Micah EIP Author not Micah EIP Editor. 😄 |
This change moves the EIP terminology away from what's currently in the code, right? |
What code? Besu and Geth you mean? I don't know what either are using for internal variable naming, but it feels like internal naming conventions for clients shouldn't play a role in deciding how to best word an EIP? |
Sorry to interrupt you. Maybe we should make the following case style changes for consistency:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, I'll clean up the geth terminology during the next code iteration. Relevant code for geth is here, the terms are confused in the message type.
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
It clarifies the meaning of the terms :)
Discussion log:
![image](https://user-images.githubusercontent.com/20497787/88783124-6157d800-d1c9-11ea-9357-a71cd80b1ed4.png)