Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(zoe): Fix OfferHandlerI.handle returns guard #8748

Merged
merged 1 commit into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading