Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

chore: integrate with changes for Zoe durability #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions api/test/setupBasicMints.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const setup = () => {
}

const { zoeService } = makeZoeKit(fakeVatAdmin);
const feePurse = E(zoeService).makeFeePurse();
const zoe = E(zoeService).bindDefaultFeePurse(feePurse);

return harden({
moolaIssuer: moolaBundle.issuer,
Expand All @@ -39,7 +37,7 @@ const setup = () => {
moola: value => AmountMath.make(moolaBundle.brand, value),
simoleans: value => AmountMath.make(simoleanBundle.brand, value),
bucks: value => AmountMath.make(bucksBundle.brand, value),
zoe,
zoe: zoeService,
});
};
harden(setup);
Expand Down
4 changes: 1 addition & 3 deletions contract/test/test-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const contractPath = new URL(`../src/contract.js`, import.meta.url).pathname;
const setupOracle = async ot => {
// Outside of tests, we should use the long-lived Zoe on the
// testnet. In this test, we must create a new Zoe.
const { zoeService } = makeZoeKit(makeFakeVatAdmin().admin);
const feePurse = E(zoeService).makeFeePurse();
const zoe = await E(zoeService).bindDefaultFeePurse(feePurse);
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);

// Pack the contract.
const contractBundle = await bundleSource(contractPath);
Expand Down