File tree 2 files changed +12
-17
lines changed
2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -7,33 +7,31 @@ import { SmartWalletOptions } from "thirdweb/wallets";
7
7
const clientId = process . env . NEXT_PUBLIC_TEMPLATE_CLIENT_ID ;
8
8
9
9
if ( ! clientId ) {
10
- throw new Error ( "No client ID provided" ) ;
10
+ throw new Error ( "No client ID provided" ) ;
11
11
}
12
12
13
13
export const client = createThirdwebClient ( {
14
- clientId : clientId ,
14
+ clientId : clientId ,
15
15
} ) ;
16
16
17
17
export const chain = baseSepolia ;
18
- export const factoryAddress = "0x7b5ba9D46b53aae55e2c2E9b38d9AfF9a0b158F8" ;
19
18
export const tokenDropAddress = "0xd64A548A82c190083707CBEFD26958E5e6551D18" ;
20
19
export const editionDropAddress = "0x638263e3eAa3917a53630e61B1fBa685308024fa" ;
21
20
export const editionDropTokenId = 0n ;
22
21
23
22
export const editionDropContract = getContract ( {
24
- address : editionDropAddress ,
25
- chain,
26
- client,
23
+ address : editionDropAddress ,
24
+ chain,
25
+ client,
27
26
} ) ;
28
27
29
28
export const tokenDropContract = getContract ( {
30
- address : tokenDropAddress ,
31
- chain,
32
- client,
29
+ address : tokenDropAddress ,
30
+ chain,
31
+ client,
33
32
} ) ;
34
33
35
34
export const accountAbstraction : SmartWalletOptions = {
36
- chain,
37
- factoryAddress,
38
- sponsorGas : true ,
35
+ chain,
36
+ sponsorGas : true ,
39
37
} ;
Original file line number Diff line number Diff line change 8
8
useActiveAccount ,
9
9
useReadContract ,
10
10
} from "thirdweb/react" ;
11
- import { client , editionDropTokenId } from "../constants" ;
11
+ import { accountAbstraction , client , editionDropTokenId } from "../constants" ;
12
12
import Link from "next/link" ;
13
13
import { arbitrumSepolia , baseSepolia } from "thirdweb/chains" ;
14
14
import { ThirdwebContract , getContract } from "thirdweb" ;
@@ -25,10 +25,7 @@ const GaslessHome: React.FC = () => {
25
25
</ h1 >
26
26
< ConnectButton
27
27
client = { client }
28
- accountAbstraction = { {
29
- chain : baseSepolia ,
30
- sponsorGas : true ,
31
- } }
28
+ accountAbstraction = { accountAbstraction }
32
29
connectModal = { {
33
30
size : "compact" ,
34
31
} }
You can’t perform that action at this time.
0 commit comments