-
Notifications
You must be signed in to change notification settings - Fork 148
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
London support #206
London support #206
Conversation
47dabd7
to
804bdee
Compare
912b2f3
to
0cb25d9
Compare
85a5bf0
to
264d699
Compare
43bcf1c
to
475d12c
Compare
56bbf3b
to
81062cf
Compare
81062cf
to
478cefd
Compare
478cefd
to
ec74cdf
Compare
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.
Big thanks for the whopper 🍔 of a changeset. Looks good from IRL review, and just did some more smoke tests locally with the relevant branches of py-evm and web3.py. Just wanted to document one UX bit from that testing:
If building a transaction manually and you only include one of the 1559 keys, w3.eth.account.sign_transaction(tx, acct.address)
will raise from within eth-account, having decided it's a legacy transaction without a gasPrice
.
(w3.eth.send_transaction
provides cleaner error messages, e.g., web3.exceptions.InvalidTransaction: maxPriorityFeePerGas must be defined in a 1559 transaction.
)
ec74cdf
to
8b0f4c3
Compare
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.
LGTM!! 🎉 🚢
066a8fa
to
7315c57
Compare
7315c57
to
5b5003f
Compare
- spelling corrections across codebase - some refactoring for better readability - access list support for transactions (type = 1 transaction support) - dynamic fees support for transactions (type = 2 transaction support) - y_parity support for typed transactions - base_fee_per_gas support for blocks - gas_limit calculation for MockBackend (copied from py-evm calculation) :) - default gas_price should be >= 1000000000, the genesis base fee per gas post-London - update README.md to reflect new values - update tests and add more tests for new transaction types and parameters - cleanups from initial PR review with @kclowes
- changes from last PR review with @kclowes - changes from self PR review comments - small README fix - add effective_gas_price and type to transaction receipt object - add tests for calculating effective_gas_price and checking type in txn receipts - update README.md example displaying the new fields - update the effective gas price calculation + validation + transaction param cleanup - update CHANGELOG with London changes overview
5b5003f
to
8d18f65
Compare
What was wrong?
This cannot be done until py-evm changes are in[they're in!].How was it fixed?
py-evm
version upgraded tov0.5.0-alpha.1
type
='0x2',max_fee_per_gas
,max_priority_fee_per_gas
,access_list
,y_parity
base_fee_per_gas
support added to blockstype
='0x1',access_list
,chain_id
,y_parity
chain_id
,type
,y_parity
for typed transactionstype
,effective_gas_price
To-Do:
base_fee_per_gas
Cute Animal Picture