Skip to content

Commit 432c3cc

Browse files
author
Edward
committed
Replace @coral-xyz/anchor with @anchor-lang/core
1 parent 3f8084d commit 432c3cc

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

scripts/lib/command-help.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export function commandHelp() {
1717
console.log(" yarn sync-package-json list");
1818
console.log(" yarn sync-package-json list basics");
1919
console.log(" yarn sync-package-json help");
20-
console.log(" yarn sync-package-json set @coral-xyz/anchor@0.29.0");
21-
console.log(" yarn sync-package-json set @coral-xyz/anchor@0.29.0 basics");
20+
console.log(" yarn sync-package-json set @anchor-lang/core@0.29.0");
21+
console.log(" yarn sync-package-json set @anchor-lang/core@0.29.0 basics");
2222
console.log(" yarn sync-package-json update");
2323
console.log(" yarn sync-package-json update basics");
2424
console.log(" yarn sync-package-json update . @solana/web3.js @solana/spl-token");

tokens/token-2022/nft-meta-data-pointer/anchor-example/app/components/MintNftButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Button, HStack, VStack } from "@chakra-ui/react";
2-
import { web3 } from "@coral-xyz/anchor";
32
import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, TOKEN_2022_PROGRAM_ID } from "@solana/spl-token";
43
import { useConnection, useWallet } from "@solana/wallet-adapter-react";
5-
import { Keypair, PublicKey, SystemProgram } from "@solana/web3.js";
4+
import { Keypair, PublicKey, SYSVAR_RENT_PUBKEY, SystemProgram } from "@solana/web3.js";
65
import Image from "next/image";
76
import { useCallback, useState } from "react";
87
import { useGameState } from "@/contexts/GameStateProvider";
@@ -39,7 +38,7 @@ const MintNftButton = () => {
3938
tokenProgram: TOKEN_2022_PROGRAM_ID,
4039
tokenAccount: destinationTokenAccount,
4140
mint: mint.publicKey,
42-
rent: web3.SYSVAR_RENT_PUBKEY,
41+
rent: SYSVAR_RENT_PUBKEY,
4342
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
4443
nftAuthority: nftAuthority[0],
4544
})

tokens/token-2022/nft-meta-data-pointer/anchor-example/app/contexts/GameStateProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BN } from "@coral-xyz/anchor";
1+
import { BN } from "@anchor-lang/core";
22
import { useConnection, useWallet } from "@solana/wallet-adapter-react";
33
import { PublicKey } from "@solana/web3.js";
44
import { createContext, useContext, useEffect, useState } from "react";

0 commit comments

Comments
 (0)