Skip to content

Commit

Permalink
Update EIPS/eip-7702.md
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Ngo <[email protected]>
  • Loading branch information
g11tech and philknows authored Jul 26, 2024
1 parent 9dda35f commit 8ae332b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-7702.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ An alternative to adding chain ID could be to sign over the code the address poi

#### Delegation Storage

Considering that the delegation from one contract to another contract can cause conflict and corruption of the storage with broken contract in the least and a compromized contract at the worst, it is prudent to separate the storage of each delegation in deterministic way.
Considering that the delegation from one contract to another contract may cause conflicts and corrupt the storage with a broken contract at the least and a compromised contract at the worst, it is prudent to separate the storage of each delegation in deterministic way.

To this effect, the delegated EOA's storage should be proixed and accessed/written at `keccak256(authority||address)[0:20]`. This way, if the contract is delegated back to a previous `address`, EVM will be able to _re-attach_ its old storage.

Expand Down

0 comments on commit 8ae332b

Please sign in to comment.