Skip to content

Commit

Permalink
Update pages/advanced/eip-7702/7702-safe.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Germán Martínez <[email protected]>
  • Loading branch information
akshay-ap and germartinez authored Dec 4, 2024
1 parent 9f6c12a commit 37eb26e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pages/advanced/eip-7702/7702-safe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ Follow the instructions here to use this approach to set code in EOA: https://gi

### Modified safe singleton

In this approach, a derived version of Safe Singleton, aka `SafeEIP7702`, overrides the `setup` function and reverts when called. Instead, the contract's new `setupEIP7702` function has a `signature` parameter. The default owner will be set to the address of the EOA account that delegates to this Singleton contract with a threshold of 1.

[SafeEIP7702](https://github.com/safe-global/safe-smart-account/blob/feature/eip-7702/contracts/experimental/SafeEIP7702.sol)
This approach uses the [SafeEIP7702](https://github.com/safe-global/safe-smart-account/blob/feature/eip-7702/contracts/experimental/SafeEIP7702.sol) contract, a derived version of Safe Singleton that overrides the `setup` function and reverts when called. Instead, the contract's new `setupEIP7702` function has a `signature` parameter. The default owner will be set to the address of the EOA account that delegates to this Singleton contract with a threshold of 1.

Because of no proxy contract in this approach, the storage slot 0 remains unused. Safe Transaction Service and other services that depend on the value at storage slot 0 will not work with this approach.

Expand Down

0 comments on commit 37eb26e

Please sign in to comment.