From 3ecbad2e9954eabdf8a00d58690c8e41a7f316cc Mon Sep 17 00:00:00 2001 From: Mudassir Shabbir <53943791+amessbee@users.noreply.github.com> Date: Wed, 7 Aug 2024 07:42:24 +0500 Subject: [PATCH] Update contract/src/offer-up.contract.js Co-authored-by: Dan Connolly --- contract/src/offer-up.contract.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/contract/src/offer-up.contract.js b/contract/src/offer-up.contract.js index 788bbec..04b8692 100644 --- a/contract/src/offer-up.contract.js +++ b/contract/src/offer-up.contract.js @@ -70,17 +70,7 @@ export const customTermsShape = meta.customTermsShape; * * @param {ZCF} zcf */ -export const start = async zcf => { - const { tradePrice, maxItems = 3n } = zcf.getTerms(); - - /** - * TODO: below is somewhat fake way of generating a zone. This should be fixed by passing it as a parameter. - * RN I don't know how to do it. - */ - const baggage = makeScalarBigMapStore('baggage', { - keyShape: M.string(), - durable: true, - }); +export const start = async (zcf, _privateArgs, baggage) => { const zone = makeDurableZone(baggage); /**