We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa6d07 commit 0e6cabaCopy full SHA for 0e6caba
src/utils/createReferralAccount.ts
@@ -5,6 +5,7 @@ import {
5
Transaction,
6
SendTransactionError,
7
} from "@solana/web3.js";
8
+import { LOCKIN_MINT } from "./globals";
9
10
interface CreateTokenReferralResult {
11
success: boolean;
@@ -23,7 +24,7 @@ export const createTokenReferralAccount = async (
23
24
wallet: WalletAdapter,
25
rpcUrl: string,
26
referralAccountPubKey: string,
- mint: string = "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB" // USDC mint
27
+ mint: string = LOCKIN_MINT
28
): Promise<CreateTokenReferralResult> => {
29
if (!wallet.publicKey || !wallet.signAllTransactions || !wallet.sendTransaction) {
30
return {
0 commit comments