Skip to content

Commit

Permalink
test(token-metadata): adjust specs after changing maxSupply on mintNF…
Browse files Browse the repository at this point in the history
…T action from number to BN to support supply 0
  • Loading branch information
kespinola committed Jan 12, 2022
1 parent 328c5f6 commit 2f5f7ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/actions/mintEditionFromMaster.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import BN from 'bn.js';
import { Connection, NodeWallet } from '../../src';
import { mintNFT } from '../../src/actions';
import { FEE_PAYER, NETWORK, pause } from '../utils';
Expand All @@ -21,7 +22,7 @@ describe('minting a limited edition from master', () => {
connection,
wallet,
uri,
maxSupply: 100,
maxSupply: new BN(100),
});

// unfortunately it takes some time for the master mint to propagate
Expand Down
3 changes: 2 additions & 1 deletion test/actions/signMetadata.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Keypair } from '@solana/web3.js';
import BN from 'bn.js';
import { Connection, NodeWallet } from '../../src';
import { mintNFT } from '../../src/actions';
import { FEE_PAYER, NETWORK, pause } from '../utils';
Expand All @@ -25,7 +26,7 @@ describe('signing metadata on a master edition', () => {
connection,
wallet,
uri,
maxSupply: 100,
maxSupply: new BN(100),
});

// unfortunately it takes some time for the master mint to propagate
Expand Down
3 changes: 2 additions & 1 deletion test/actions/updateMetadata.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import BN from 'bn.js';
import { Keypair } from '@solana/web3.js';
import { Connection, NodeWallet } from '../../src';
import { mintNFT } from '../../src/actions';
Expand Down Expand Up @@ -39,7 +40,7 @@ describe('updating metadata on a master edition', () => {
connection,
wallet,
uri,
maxSupply: 100,
maxSupply: new BN(100),
});

// unfortunately it takes some time for the master mint to propagate
Expand Down

0 comments on commit 2f5f7ee

Please sign in to comment.