Skip to content

Commit

Permalink
fix(unlockjs, unlock-app): Extend with approval (#14073)
Browse files Browse the repository at this point in the history
* wip

* wip

* updated approval amount on recurring memberships
  • Loading branch information
julien51 committed Jun 19, 2024
1 parent 92bf42c commit 188f00a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unlock-js/src/PublicLock/v10/extendKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default async function (

if (!totalAmountToApprove) {
totalAmountToApprove = recurringPayment
? actualAmount * recurringPayment
? actualAmount * BigInt(recurringPayment)
: actualAmount
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ export function ConfirmCrypto({
owner: recipients?.[0],
referrer: getReferrer(account!, paywallConfig, lockAddress),
data: purchaseData?.[0],
recurringPayment: recurringPayments
? recurringPayments[0]
: undefined,
totalApproval,
},
{} /** Transaction params */,
onErrorCallback
Expand Down

0 comments on commit 188f00a

Please sign in to comment.