Skip to content

Commit

Permalink
test: poolShares issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 1, 2024
1 parent 22b2cc5 commit 17df411
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/fast-usdc/src/fast-usdc.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const contract = async (zcf, privateArgs, zone, tools) => {
assert(tools, 'no tools');
const terms = zcf.getTerms();
assert('USDC' in terms.brands, 'no USDC brand');
assert('PoolShares' in terms.brands, 'no PoolShares brand');

const statusManager = prepareStatusManager(zone);
const feed = prepareTransactionFeed(zone);
Expand Down
4 changes: 2 additions & 2 deletions packages/fast-usdc/test/fast-usdc.contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type StartFn = typeof import('../src/fast-usdc.contract.js').start;
test('start', async t => {
const {
bootstrap,
brands: { usdc },
brands: { poolShares, usdc },
commonPrivateArgs,
utils,
} = await commonSetup(t);
Expand All @@ -24,7 +24,7 @@ test('start', async t => {

const { creatorFacet } = await E(zoe).startInstance(
installation,
{ USDC: usdc.issuer },
{ PoolShares: poolShares.issuer, USDC: usdc.issuer },
{
poolFee: usdc.make(1n),
contractFee: usdc.make(1n),
Expand Down
1 change: 1 addition & 0 deletions packages/fast-usdc/test/supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export const commonSetup = async (t: ExecutionContext<any>) => {
vowTools,
},
brands: {
poolShares: withAmountUtils(makeIssuerKit('Fast USDC Pool Shares')),
usdc: usdcSansMint,
},
mocks: {
Expand Down

0 comments on commit 17df411

Please sign in to comment.