@@ -42,7 +42,7 @@ import {
4242} from " @metamask/delegation-toolkit" ;
4343import { privateKeyToAccount } from " viem/accounts" ;
4444import { createPublicClient , http } from " viem" ;
45- import { lineaSepolia as chain } from " viem/chains" ;
45+ import { sepolia as chain } from " viem/chains" ;
4646
4747const publicClient = createPublicClient ({
4848 chain ,
@@ -79,8 +79,8 @@ import {
7979 DeleGatorEnvironment ,
8080} from " @metamask/delegation-toolkit" ;
8181
82- // Resolves the DeleGatorEnvironment for Linea Sepolia
83- const environment: DeleGatorEnvironment = getDelegatorEnvironment (59141 );
82+ // Resolves the DeleGatorEnvironment for Sepolia
83+ const environment: DeleGatorEnvironment = getDelegatorEnvironment (11155111 );
8484```
8585
8686## Deploy custom delegator environment
@@ -97,7 +97,7 @@ Your wallet must have sufficient native token balance to deploy the contracts.
9797
9898``` typescript
9999import { walletClient , publicClient } from " ./config.ts" ;
100- import { lineaSepolia as chain } from " viem/chains" ;
100+ import { sepolia as chain } from " viem/chains" ;
101101import { deployDeleGatorEnvironment } from " @metamask/delegation-toolkit/utils" ;
102102
103103const environment = await deployDeleGatorEnvironment (
@@ -112,7 +112,7 @@ const environment = await deployDeleGatorEnvironment(
112112
113113``` typescript
114114import { privateKeyToAccount } from " viem/accounts" ;
115- import { lineaSepolia as chain } from " viem/chains" ;
115+ import { sepolia as chain } from " viem/chains" ;
116116import { http , createWalletClient , createPublicClient } from " viem" ;
117117
118118// Your deployer wallet private key.
@@ -140,7 +140,7 @@ For example, if you've already deployed the `EntryPoint` contract on the target
140140``` typescript
141141// The config.ts is the same as in the previous example.
142142import { walletClient , publicClient } from " ./config.ts" ;
143- import { lineaSepolia as chain } from " viem/chains" ;
143+ import { sepolia as chain } from " viem/chains" ;
144144import { deployDeleGatorEnvironment } from " @metamask/delegation-toolkit/utils" ;
145145
146146const environment = await deployDeleGatorEnvironment (
@@ -165,7 +165,7 @@ To override the delegator environment, the toolkit provides a `overrideDeployedE
165165``` typescript
166166// The config.ts is the same as in the previous example.
167167import { walletClient , publicClient } from " ./config.ts" ;
168- import { lineaSepolia as chain } from " viem/chains" ;
168+ import { sepolia as chain } from " viem/chains" ;
169169import { DeleGatorEnvironment } from " @metamask/delegation-toolkit" ;
170170import {
171171 overrideDeployedEnvironment ,
@@ -190,7 +190,7 @@ If you've already deployed the contracts using a different method, you can creat
190190``` typescript
191191// remove-start
192192- import { walletClient , publicClient } from " ./config.ts" ;
193- - import { lineaSepolia as chain } from " viem/chains" ;
193+ - import { sepolia as chain } from " viem/chains" ;
194194// remove-end
195195import { DeleGatorEnvironment } from " @metamask/delegation-toolkit" ;
196196import {
0 commit comments