Question about SmartContractWallet address persistency #617
-
Hello dear Alchemy. I have found discussions only here. Still I hope this is somewhat relevant.
I have questions:
Thank you very much for attention! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! For both of these questions: this is enforced by the factory that you choose for your SCW. Your factory needs to ensure that only the EOA owner could deploy a contract at a particular address. Its also responsible for ensuring that the address doesn't change between when you determine the counterfactual address and deploy the account, given that you provide the same This is typically done using Some examples: |
Beta Was this translation helpful? Give feedback.
Hey!
For both of these questions: this is enforced by the factory that you choose for your SCW. Your factory needs to ensure that only the EOA owner could deploy a contract at a particular address. Its also responsible for ensuring that the address doesn't change between when you determine the counterfactual address and deploy the account, given that you provide the same
initCode
.This is typically done using
Create2
.Some examples:
SimpleAccount
LightAccount