Removed connection
This commit is contained in:
@@ -4,13 +4,6 @@ import { createUmi } from "@metaplex-foundation/umi-bundle-defaults"
|
||||
import { createMetadataAccountV3 } from "@metaplex-foundation/mpl-token-metadata";
|
||||
import { createSignerFromKeypair, publicKey, signerIdentity, PublicKey as umiPublicKey } from "@metaplex-foundation/umi";
|
||||
|
||||
// We're going to import our keypair from the wallet file
|
||||
const keypair = Keypair.fromSecretKey(new Uint8Array(wallet));
|
||||
|
||||
//Create a Solana devnet connection
|
||||
const commitment: Commitment = "confirmed";
|
||||
const connection = new Connection("https://api.devnet.solana.com", commitment);
|
||||
|
||||
// Define our Mint address
|
||||
const mint = new PublicKey("<mint address>")
|
||||
|
||||
@@ -27,8 +20,8 @@ const [metadata_pda, _bump] = PublicKey.findProgramAddressSync(metadata_seeds, t
|
||||
|
||||
// Create a UMI connection
|
||||
const umi = createUmi('https://api.devnet.solana.com');
|
||||
const umiKeypair = umi.eddsa.createKeypairFromSecretKey(keypair.secretKey);
|
||||
umi.use(signerIdentity(createSignerFromKeypair(umi, umiKeypair)));
|
||||
const keypair = umi.eddsa.createKeypairFromSecretKey(new Uint8Array(wallet));
|
||||
umi.use(signerIdentity(createSignerFromKeypair(umi, keypair)));
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user