Skip to content

Commit

Permalink
revert changes in package.json and yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Sep 5, 2024
1 parent 3ac0d4a commit ea8a272
Show file tree
Hide file tree
Showing 4 changed files with 12,833 additions and 17,600 deletions.
8 changes: 4 additions & 4 deletions contract/test/test-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,21 @@ const alice = async (t, zoe, instance, purse) => {
t.deepEqual(actual, proposal.want.Items);
};

test('Alice trades: give some play money, want items', async t => {
test('Alice trades: give some play money, want subscription', async t => {
const { zoe, bundle } = t.context;

const money = makeIssuerKit('PlayMoney');
const issuers = { Price: money.issuer };
const terms = { subscriptionPrice: AmountMath.make(money.brand, 5n) };
t.log('terms:', terms);
const terms = { subscriptionPrice: AmountMath.make(money.brand, 500n) };

/** @type {ERef<Installation<AssetContractFn>>} */
const installation = E(zoe).install(bundle);
const { instance } = await E(zoe).startInstance(installation, issuers, terms);
t.log(instance);
t.is(typeof instance, 'object');

const alicePurse = money.issuer.makeEmptyPurse();
const amountOfMoney = AmountMath.make(money.brand, 10n);
const amountOfMoney = AmountMath.make(money.brand, 500n);
const moneyPayment = money.mint.mintPayment(amountOfMoney);
alicePurse.deposit(moneyPayment);
await alice(t, zoe, instance, alicePurse);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"eslint-plugin-testing-library": "^6.2.0",
"eslint-plugin-ui-testing": "^2.0.1",
"serve": "^14.2.1"
}
},
"dependencies": {}
}
4 changes: 4 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
"vitest": "^1.2.1",
"zustand": "^4.4.1"
},
"resolutions": {
"**/ses": "^1.3.0",
"**/@agoric/xsnap": "0.14.3-dev-9f085d3.0"
},
"prettier": {
"trailingComma": "all",
"arrowParens": "avoid",
Expand Down
Loading

0 comments on commit ea8a272

Please sign in to comment.