Feature/eip 7702
https://eips.ethereum.org/EIPS/eip-7702
Changes
Adds an authorization_list to tx that is used to set delegations on EOAs in the form of 0xef0100 || address
The address delegates all code to the address, when the EOA is called.
EVM opcodes like EXTCODESIZE, EXTCODECOPY etc. are affected by a delegation.
Account access gas is changed to count double if delegated. Once for the EOA and once for the delegation address.
Types of changes
What types of changes does your code introduce?
- [ ] Bugfix (a non-breaking change that fixes an issue)
- [x] New feature (a non-breaking change that adds functionality)
- [ ] Breaking change (a change that causes existing functionality not to work as expected)
- [ ] Optimization
- [ ] Refactoring
- [ ] Documentation update
- [ ] Build-related changes
- [ ] Other: Description
Testing
Requires testing
- [x] Yes
- [ ] No
If yes, did you write tests?
- [x] Yes
- [ ] No
More:
Verify the chain id is either 0 or the chain's current ID. - verify in tx pool Verify that the code of authority is empty. - verify in tx pool & tx picker If nonce list item is length one, verify the nonce of authority is equal to nonce. - verify in tx picker
superceded by #7459