This repository was archived by the owner on Feb 5, 2025. It is now read-only.
File tree 3 files changed +9
-9
lines changed
app/paymaster-bundler/_components 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @coinbase/build-onchain-apps ' : patch
3
+ ---
4
+
5
+ - ** fix** : Update Paymaster URL environment variable. By @cpcramer
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ import { CallStatus } from './CallStatus';
8
8
9
9
// Use the local API URL to target the Paymaster directly without a proxy
10
10
// if running on localhost, otherwise use the Paymaster Proxy.
11
- const paymasterURL = process . env . NEXT_PRIVATE_PAYMASTER_URL ;
11
+ const paymasterURL = process . env . NEXT_PUBLIC_PAYMASTER_URL ;
12
12
const isLocalEnv = isLocal ( ) ;
13
13
const defaultUrl = isLocalEnv ? paymasterURL : `${ document . location . origin } /api/paymaster-proxy` ;
14
14
15
15
export default function PaymasterBundlerDemo ( ) {
16
16
const { address } = useAccount ( ) ;
17
- const { data : transactionID , writeContracts } = useWriteContracts ( ) ;
17
+ const { data : callID , writeContracts } = useWriteContracts ( ) ;
18
18
const contract = usePaymasterBundlerContract ( ) ;
19
19
20
20
if ( contract . status !== 'ready' ) {
@@ -76,12 +76,7 @@ export default function PaymasterBundlerDemo() {
76
76
>
77
77
Mint NFT
78
78
</ button >
79
- { transactionID && < CallStatus id = { transactionID } /> }
80
- { transactionID && (
81
- < div className = { clsx ( 'mt-4 overflow-x-auto rounded-lg bg-gray-800 p-4 text-lg' ) } >
82
- < strong > Transaction ID:</ strong > < span className = "break-all" > { transactionID } </ span >
83
- </ div >
84
- ) }
79
+ { callID && < CallStatus id = { callID } /> }
85
80
</ section >
86
81
</ div >
87
82
) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { paymasterActionsEip7677 } from 'permissionless/experimental';
3
3
import { createClient , http } from 'viem' ;
4
4
import { baseSepolia } from 'viem/chains' ;
5
5
6
- const paymasterService = process . env . NEXT_PRIVATE_PAYMASTER_URL ?? '' ;
6
+ const paymasterService = process . env . NEXT_PUBLIC_PAYMASTER_URL ?? '' ;
7
7
8
8
export const paymasterClient = createClient ( {
9
9
chain : baseSepolia ,
You can’t perform that action at this time.
0 commit comments