Skip to content

Commit

Permalink
fixup! add back comments
Browse files Browse the repository at this point in the history
  • Loading branch information
amessbee committed Jan 10, 2025
1 parent 7d92433 commit e67fe75
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions contract/src/offer-up.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,21 @@ export const start = async (zcf, _privateArgs, baggage) => {

// Use zone.exo to make a publicFacet suitable for use by remote callers.
const publicFacet = zone.exo('Items Public Facet', undefined, {
/**
* Make an invitation to trade for items.
*
* Proposal Keywords used in offers using these invitations:
* - give: `Price`
* - want: `Items`
*/
makeTradeInvitation() {
return zcf.makeInvitation(tradeHandler, 'buy items', undefined, proposalShape),
}
return zcf.makeInvitation(
tradeHandler,
'buy items',
undefined,
proposalShape,
);
},
});
return harden({ publicFacet });
};
Expand Down

0 comments on commit e67fe75

Please sign in to comment.