etherspot / etherspot-prime-sdk

Etherspot Prime - Account Abstraction SDK
https://etherspot.fyi
MIT License
128 stars 22 forks source link

Adding guardians to etherspot wallet example script #38

Closed taylorferran closed 1 year ago

taylorferran commented 1 year ago

Description

Here I'm adding a script which devs can use to add guardians to their Etherspot wallet. They must replace the 3 addresses in the array with addresses they wish to add. Users can run the script the same way they run other examples in this directory, like this:

npm run 12-add-guardians

How Has This Been Tested?

I ran the script and saw the transaction complete successfully on mumbai: https://mumbai.polygonscan.com/tx/0x8cdaa2a6f1114a68758bb60954fab1e0d462c70b927a569e9cc86718dd3db3b4#eventlog

It does not work to run multiple times with the same addresses as we cannot add the same guardian twice.

Types of changes