Skip to content

Commit

Permalink
Doc(extensions.mdx): correct import statment (#6301)
Browse files Browse the repository at this point in the history
change the import from `../src` to `@solana/spl-token` because users will try to use these scripts in their own projects and these imports needs to come from the library itself
  • Loading branch information
MohammedAlabd authored Feb 26, 2024
1 parent 888f089 commit 3818c6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/token-2022/extensions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ import {
createAccount,
getMintLen,
TOKEN_2022_PROGRAM_ID,
} from '../src';
} from '@solana/spl-token';

(async () => {
const payer = Keypair.generate();
Expand Down Expand Up @@ -1382,7 +1382,7 @@ import {
getAccountLen,
ExtensionType,
TOKEN_2022_PROGRAM_ID,
} from '../src';
} from '@solana/spl-token';

(async () => {
const connection = new Connection(clusterApiUrl('devnet'), 'confirmed');
Expand Down Expand Up @@ -1549,7 +1549,7 @@ import {
createAccount,
getMintLen,
TOKEN_2022_PROGRAM_ID,
} from '../src';
} from '@solana/spl-token';

(async () => {
const payer = Keypair.generate();
Expand Down

0 comments on commit 3818c6e

Please sign in to comment.