Skip to content

Commit 9b96bae

Browse files
NAOR YUVALNAOR YUVAL
authored andcommitted
Merge main into feat/pr23-machine-wallet-guardrails
Made-with: Cursor
2 parents 8d8a3f8 + 658e4df commit 9b96bae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/machine-wallet-guardrails/wallet-integration.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function checkGuardrails(policyGrant, sba, paymentRequest) {
7171
if (!sbaAssetMatch) {
7272
return { ok: false, reason: "asset not in budget authorization" };
7373
}
74+
7475
const maxMinor = BigInt(sba.authorization.maxAmountMinor ?? "0");
7576
const reqMinor = BigInt(amount);
7677
if (reqMinor > maxMinor) {

0 commit comments

Comments
 (0)