We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8d8a3f8 + 658e4df commit 9b96baeCopy full SHA for 9b96bae
1 file changed
examples/machine-wallet-guardrails/wallet-integration.mjs
@@ -71,6 +71,7 @@ function checkGuardrails(policyGrant, sba, paymentRequest) {
71
if (!sbaAssetMatch) {
72
return { ok: false, reason: "asset not in budget authorization" };
73
}
74
+
75
const maxMinor = BigInt(sba.authorization.maxAmountMinor ?? "0");
76
const reqMinor = BigInt(amount);
77
if (reqMinor > maxMinor) {
0 commit comments