You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
At the moment, we don't support accessList in transactions. This is a feature added by eip-2930, and in certain cases leads to gas used savings.
Solution:
At the very least, we should allow proxying eth_createAccessList calls to the connected network, and pass the transaction field accessList to be passed in for signing. We also allow accessList to be passed into estimate gas.
Future considerations:
We can determine, for most cases, if providing an access list will amount to gas savings. There are however some cases where we wont know until after the transaction is added to a block, since the transaction and associated access list might be dependant on the state of a particular block, and become suboptimal in the next. We could explore ways of detecting these situations, but it would be pretty elaborate and so automatically creating accessLists was left out of the scope of this PR.
This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…r it
Explanation
Problem:
At the moment, we don't support accessList in transactions. This is a feature added by eip-2930, and in certain cases leads to gas used savings.
Solution:
At the very least, we should allow proxying eth_createAccessList calls to the connected network, and pass the transaction field
accessListto be passed in for signing. We also allowaccessListto be passed into estimate gas.Future considerations:
We can determine, for most cases, if providing an access list will amount to gas savings. There are however some cases where we wont know until after the transaction is added to a block, since the transaction and associated access list might be dependant on the state of a particular block, and become suboptimal in the next. We could explore ways of detecting these situations, but it would be pretty elaborate and so automatically creating accessLists was left out of the scope of this PR.
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/870
Screenshots/Screencaps
Before
After
Manual Testing Steps
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Boardlabel.In this case, a QA Engineer approval will be be required.