Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

EIP-2929: only add params.address to access list #356

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

sorpaas
Copy link
Contributor

@sorpaas sorpaas commented Apr 15, 2021

No matter if this is actually the issue for #353, it looks like a deviation from the specification nonetheless. The spec only specifies that we add the target address to the access list, but never mentioned params.sender.

@karim-agha karim-agha changed the base branch from main to dev April 15, 2021 13:24
@jochem-brouwer
Copy link

image

?

@sorpaas
Copy link
Contributor Author

sorpaas commented Apr 15, 2021

@jochem-brouwer No. That specifies what happens when you initialize a new transaction, but the lines in this PR is when you enter a substate call/create. They're entirely different.

@jochem-brouwer
Copy link

Ah - right, in that case you are correct. But this should not change stuff, since sender should already be in the warm access lists, as it was previously target of a message call/create or a *CALL* / CREATE* opcode.

@sorpaas
Copy link
Contributor Author

sorpaas commented Apr 15, 2021

That's not entirely true. I however indeed hope what you said is correct and this is actually just a no-op deviation.

params.sender is the caller of parent contract, not the transaction sender (which is params.origin). In the case of CALLCODE or DELEGATECALL, only params.code_address is added to the access list.

@jochem-brouwer
Copy link

True - sorry, I indeed meant the parent caller here, not tx.sender / ORIGIN.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants