EIPs icon indicating copy to clipboard operation
EIPs copied to clipboard

Update EIP-7702: Prohibit `SSTORE`

Open SamWilsn opened this issue 1 year ago • 4 comments

SamWilsn avatar May 09 '24 00:05 SamWilsn

✅ All reviewers have approved.

eth-bot avatar May 09 '24 00:05 eth-bot

Today, you can create a contract, manipulate storage freely, and selfdestruct it before the end of the transaction. In that case, storage is cleared, effectivelly behaving like TSTORE.

Should we replicate that behavior, considering that the reset at the end of an EIP-7702 transaction is simlilar to a selfdestruct?

Amxx avatar May 09 '24 06:05 Amxx

SSTORE would be useful for persisting state across transactions. It won't be necessary for most use-cases, but I would prefer if it is possible. Some uses I can imagine:

  • Marking nonces as used
  • Approval
  • Whitelist, Blacklist

wjmelements avatar May 10 '24 01:05 wjmelements

SSTORE would be useful for persisting state across transactions. It won't be necessary for most use-cases, but I would prefer if it is possible. Some uses I can imagine:

  • Marking nonces as used
  • Approval
  • Whitelist, Blacklist

Reviewing cases

LwkkyLDdubz avatar May 10 '24 01:05 LwkkyLDdubz

There has been no activity on this pull request for 2 weeks. It will be closed after 3 months of inactivity. If you would like to move this PR forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review.

github-actions[bot] avatar Aug 04 '24 00:08 github-actions[bot]