Skip to content

Commit

Permalink
fix: incorporate review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
FUDCo committed Aug 27, 2020
1 parent 3ecbee0 commit 9812c61
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/swingset-runner/demo/exchangeBenchmark/exchanger.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const log = makePrintLog();
* @param {ZoeService} zoe
* @param {Issuer[]} issuers
* @param {Payment[]} payments
* @param {{ makeInvitation: () => Invitation }} publicAPI
* @param {{ makeInvitation: () => Invitation }} publicFacet
*/
async function build(name, zoe, issuers, payments, publicAPI) {
async function build(name, zoe, issuers, payments, publicFacet) {
const { moola, simoleans, purses } = await setupPurses(
zoe,
issuers,
Expand Down Expand Up @@ -47,7 +47,7 @@ async function build(name, zoe, issuers, payments, publicAPI) {
async function initiateTrade(otherP) {
await preReport();

const addOrderInvitation = await E(publicAPI).makeInvitation();
const addOrderInvitation = await E(publicFacet).makeInvitation();

const mySellOrderProposal = harden({
give: { Asset: moola(1) },
Expand All @@ -64,7 +64,7 @@ async function build(name, zoe, issuers, payments, publicAPI) {
);
const payoutP = E(seat).getPayouts();

const invitationP = E(publicAPI).makeInvitation();
const invitationP = E(publicFacet).makeInvitation();
await E(otherP).respondToTrade(invitationP);

await receivePayout(payoutP);
Expand Down Expand Up @@ -105,7 +105,7 @@ async function build(name, zoe, issuers, payments, publicAPI) {

export function buildRootObject(_vatPowers, vatParameters) {
return harden({
build: (zoe, issuers, payments, publicAPI) =>
build(vatParameters.name, zoe, issuers, payments, publicAPI),
build: (zoe, issuers, payments, publicFacet) =>
build(vatParameters.name, zoe, issuers, payments, publicFacet),
});
}

0 comments on commit 9812c61

Please sign in to comment.