From 87e4ef498bd57ac1577e46ecdcc3bb96c0a98c88 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Sat, 13 Jan 2024 16:23:21 -0800 Subject: [PATCH] fix(zoe): Fix OfferHandlerI.handle returns guard (#8748) --- packages/zoe/src/contractSupport/zoeHelpers.js | 3 ++- packages/zoe/src/typeGuards.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/zoe/src/contractSupport/zoeHelpers.js b/packages/zoe/src/contractSupport/zoeHelpers.js index 01c38791321..4de0f07c512 100644 --- a/packages/zoe/src/contractSupport/zoeHelpers.js +++ b/packages/zoe/src/contractSupport/zoeHelpers.js @@ -176,11 +176,12 @@ export const depositToSeatSuccessMsg = `Deposit and reallocation successful.`; * The `amounts` and `payments` records must have corresponding * keywords. * + * @template {object} [OR=unknown] * @param {ZCF} zcf * @param {ZCFSeat} recipientSeat * @param {AmountKeywordRecord} amounts * @param {PaymentPKeywordRecord} payments - * @returns {Promise} `Deposit and reallocation successful.` + * @returns {Promise} `Deposit and reallocation successful.` */ export const depositToSeat = async (zcf, recipientSeat, amounts, payments) => { !recipientSeat.hasExited() || Fail`The recipientSeat cannot have exited.`; diff --git a/packages/zoe/src/typeGuards.js b/packages/zoe/src/typeGuards.js index 410902f78d0..e694725fc7b 100644 --- a/packages/zoe/src/typeGuards.js +++ b/packages/zoe/src/typeGuards.js @@ -127,7 +127,7 @@ export const InvitationElementShape = M.splitRecord({ }); export const OfferHandlerI = M.interface('OfferHandler', { - handle: M.call(SeatShape).optional(M.any()).returns(M.string()), + handle: M.call(SeatShape).optional(M.any()).returns(M.any()), }); export const SeatHandleAllocationsShape = M.arrayOf(