Skip to content

Commit

Permalink
fix(zoe): Fix OfferHandlerI.handle returns guard (Agoric#8748)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights authored and anilhelvaci committed Feb 16, 2024
1 parent d1bf749 commit ec8e389
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/zoe/src/contractSupport/zoeHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>} `Deposit and reallocation successful.`
* @returns {Promise<OR>} `Deposit and reallocation successful.`
*/
export const depositToSeat = async (zcf, recipientSeat, amounts, payments) => {
!recipientSeat.hasExited() || Fail`The recipientSeat cannot have exited.`;
Expand Down
2 changes: 1 addition & 1 deletion packages/zoe/src/typeGuards.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ec8e389

Please sign in to comment.