Skip to content

Commit

Permalink
chore: fix patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Jan 4, 2024
1 parent 8c1ab7c commit 3b6db32
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ export const prepareSmartWallet = (baggage, shared) => {
M.or(M.record(), M.undefined()),
).returns(M.promise()),
purseForBrand: M.call(BrandShape).returns(M.promise()),
logWalletInfo: M.call(M.any()).returns(),
logWalletError: M.call(M.any()).returns(),
logWalletInfo: M.call().rest(M.arrayOf(M.any())).returns(),
logWalletError: M.call().rest(M.arrayOf(M.any())).returns(),
// XXX is there a tighter guard for a bigMapStore than M.any()?
getLiveOfferPayments: M.call().returns(M.any()),
}),
Expand All @@ -375,10 +375,13 @@ export const prepareSmartWallet = (baggage, shared) => {
receive: M.callWhen(M.await(M.eref(PaymentShape))).returns(AmountShape),
}),
payments: M.interface('payments support', {
withdrawGive: M.call(AmountKeywordRecordShape).returns(
PaymentPKeywordRecordShape,
),
tryReclaimingWithdrawnPayments: M.call(M.string()).returns(M.promise()),
withdrawGive: M.call(
AmountKeywordRecordShape,
M.or(M.number(), M.string()),
).returns(PaymentPKeywordRecordShape),
tryReclaimingWithdrawnPayments: M.call(
M.or(M.number(), M.string()),
).returns(M.promise()),
}),
offers: M.interface('offers facet', {
executeOffer: M.call(shape.OfferSpec).returns(M.promise()),
Expand Down

0 comments on commit 3b6db32

Please sign in to comment.