Skip to content

Commit

Permalink
concise method syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Connolly <connolly@agoric.com>
  • Loading branch information
amessbee and dckc authored Jan 10, 2025
1 parent 1be91de commit 7d92433
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contract/src/offer-up.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ 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, {
makeTradeInvitation: () =>
zcf.makeInvitation(tradeHandler, 'buy items', undefined, proposalShape),
makeTradeInvitation() {
return zcf.makeInvitation(tradeHandler, 'buy items', undefined, proposalShape),
}
});
return harden({ publicFacet });
};
Expand Down

0 comments on commit 7d92433

Please sign in to comment.