Skip to content

Commit

Permalink
Merge pull request solana-labs#130 from jarry-xiao/add-config-fix-id-bug
Browse files Browse the repository at this point in the history
External Configuration
  • Loading branch information
austbot authored Jul 1, 2022
2 parents 3dcb54f + cbc330e commit 60deae5
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions contracts/tests/bubblegum-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,8 @@ describe("bubblegum", () => {
Bubblegum.programId
);

let [tokenMint] = await PublicKey.findProgramAddress(
[asset.toBuffer(), TOKEN_PROGRAM_ID.toBuffer()],
Bubblegum.programId
); //TODO -> change this for v1 id must be the mint

let [mintAuthority] = await PublicKey.findProgramAddress(
[tokenMint.toBuffer()],
[asset.toBuffer()],
Bubblegum.programId
);

Expand Down Expand Up @@ -392,13 +387,13 @@ describe("bubblegum", () => {
tokenAccount: await Token.getAssociatedTokenAddress(
ASSOCIATED_TOKEN_PROGRAM_ID,
TOKEN_PROGRAM_ID,
tokenMint,
asset,
payer.publicKey
),
mint: tokenMint,
mint: asset,
mintAuthority: mintAuthority,
metadata: await getMetadata(tokenMint),
masterEdition: await getMasterEdition(tokenMint),
metadata: await getMetadata(asset),
masterEdition: await getMasterEdition(asset),
sysvarRent: SYSVAR_RENT_PUBKEY,
tokenMetadataProgram: PROGRAM_ID,
associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID,
Expand Down

0 comments on commit 60deae5

Please sign in to comment.