From 7d92433514e60dd1328ba68d206661f016f6fa1c Mon Sep 17 00:00:00 2001 From: Mudassir Shabbir <53943791+amessbee@users.noreply.github.com> Date: Fri, 10 Jan 2025 08:36:53 +0500 Subject: [PATCH] concise method syntax Co-authored-by: Dan Connolly --- contract/src/offer-up.contract.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contract/src/offer-up.contract.js b/contract/src/offer-up.contract.js index 35815b3..2b9a561 100644 --- a/contract/src/offer-up.contract.js +++ b/contract/src/offer-up.contract.js @@ -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 }); };