Skip to content

Commit 0e6caba

Browse files
committed
Need to test
1 parent 6aa6d07 commit 0e6caba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/createReferralAccount.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Transaction,
66
SendTransactionError,
77
} from "@solana/web3.js";
8+
import { LOCKIN_MINT } from "./globals";
89

910
interface CreateTokenReferralResult {
1011
success: boolean;
@@ -23,7 +24,7 @@ export const createTokenReferralAccount = async (
2324
wallet: WalletAdapter,
2425
rpcUrl: string,
2526
referralAccountPubKey: string,
26-
mint: string = "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB" // USDC mint
27+
mint: string = LOCKIN_MINT
2728
): Promise<CreateTokenReferralResult> => {
2829
if (!wallet.publicKey || !wallet.signAllTransactions || !wallet.sendTransaction) {
2930
return {

0 commit comments

Comments
 (0)