-
Notifications
You must be signed in to change notification settings - Fork 83
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 EIP-7702 - new type transaction #960
base: develop
Are you sure you want to change the base?
Conversation
It would be good to add some integration tests/examples which demonstrate the new functionality. |
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.
The implementation looks good to me now, nice work. I still think it would be nice to have some integration tests for this feature. I think the following tests would be good to have:
- Happy path: EOA delegates code to a contract and then a transaction to that EOA executes successfully
- Error path: Delegation fails for incorrect nonce
- Error path: Delegation fails for incorrect chain id
- Error path: Delegation fails for invalid signature
if self.transaction.authorization_list.is_empty() { | ||
return Err(Error::EmptyAuthorizationList); | ||
} | ||
let current_tx_chain_id = U256::from(self.transaction.chain_id); |
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.
Good idea taking the current chain id from the transaction itself!
engine-tests/src/tests/repro.rs
Outdated
@@ -88,7 +88,7 @@ fn repro_5bEgfRQ() { | |||
block_timestamp: 1_651_073_772_931_594_646, | |||
input_path: "src/tests/res/input_5bEgfRQ.hex", | |||
evm_gas_used: 6_414_105, | |||
near_gas_used: 650, | |||
near_gas_used: 508, |
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.
It's always nice to see the gas costs go down when we move to a newer version of sputnikVM.
Description
➡️ Added EIP-7702 - new type transaction for
Prague
hard fork➡️ Changed basic EVM transact functions call
aurora-evm
transact functions has breaking changes, wich includes new fields related toEIP-7702
.Gas cost
➡️ Gas costs decreased. In some cases significantly.