Skip to content

Commit cb19f00

Browse files
Merge pull request #11 from nikhilkumar1612/ft-ep-update
ft: changing ep9 address and simple7702Account impl address
1 parent 77988ef commit cb19f00

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/userops/basic.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This guide will help understanding how to broadcast a [7702](https://eip7702.io/) userop using smart wallet implemented [here](https://github.com/eth-infinitism/account-abstraction/blob/develop/contracts/accounts/Simple7702Account.sol)
44

55
### 1. Create Smart Account Client
6-
Refer [here](https://viem.sh/account-abstraction/accounts/smart#smart-accounts) to understand how to create different smart account clients. **Only use wallets which support entrypoint v0.8**
6+
Refer [here](https://viem.sh/account-abstraction/accounts/smart#smart-accounts) to understand how to create different smart account clients. **Only use wallets which support entrypoint v0.9**
77
=== "account.ts"
88
```ts
99
import { commonClient } from './client'
@@ -12,6 +12,7 @@ Refer [here](https://viem.sh/account-abstraction/accounts/smart#smart-accounts)
1212
const owner = privateKeyToAccount('0x...') // add private key here
1313

1414
export const smartAccount = await toSimple7702SmartAccount({
15+
implementation: "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5", // simple7702Account for ep9
1516
client: commonClient,
1617
owner,
1718
});
@@ -39,10 +40,13 @@ Refer [here](https://viem.sh/account-abstraction/accounts/smart#smart-accounts)
3940
const owner = privateKeyToAccount('0x...') // add private key here
4041

4142
const smartAccount = await toSimple7702SmartAccount({
43+
implementation: "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5", // simple7702Account for ep9
4244
client: commonClient,
4345
owner,
4446
})
4547

48+
// overriding for ep9 address
49+
smartAccount.entryPoint.address = "0x433709009B8330FDa32311DF1C2AFA402eD8D009"
4650
console.log("wallet:: ", smartAccount.address)
4751

4852
// check sender's code to decide if eip7702Auth tuple is necessary for userOp.

docs/userops/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Quick Start Guide
22

3-
Get up and running with EntryPoint v0.8 and 7702 UserOperations in under 5 minutes! This guide will walk you through with installing the necessary dependencies and creating bundler client.
3+
Get up and running with EntryPoint v0.9 and 7702 UserOperations in under 5 minutes! This guide will walk you through with installing the necessary dependencies and creating bundler client.
44

55
## Installation
66

docs/userops/sponsor.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This guide will help understanding how to broadcast a [7702](https://eip7702.io/
1111
const owner = privateKeyToAccount('0x...') // add private key here
1212

1313
export const smartAccount = await toSimple7702SmartAccount({
14+
implementation: "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5", // simple7702Account for ep9
1415
client: commonClient,
1516
owner,
1617
});
@@ -54,10 +55,13 @@ Refer [here](https://viem.sh/account-abstraction/clients/paymaster) for more opt
5455
const owner = privateKeyToAccount('0x...') // add private key here
5556

5657
const smartAccount = await toSimple7702SmartAccount({
58+
implementation: "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5", // simple7702Account for ep9
5759
client: commonClient,
5860
owner,
5961
})
6062

63+
// overriding for ep9 address
64+
smartAccount.entryPoint.address = "0x433709009B8330FDa32311DF1C2AFA402eD8D009"
6165
console.log("wallet:: ", smartAccount.address)
6266

6367
// check sender's code to decide if eip7702Auth tuple is necessary for userOp.

0 commit comments

Comments
 (0)