x402-surface-check 0.2.41 → 0.2.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1020,8 +1020,9 @@ function usesDecimalAmount(accept, result) {
|
|
|
1020
1020
|
const amount = String(rawAmount)
|
|
1021
1021
|
if (amount.includes('.')) return true
|
|
1022
1022
|
if (accept.maxAmountRequired !== undefined || accept.maxAmount !== undefined) return false
|
|
1023
|
+
if (accept.asset) return false
|
|
1023
1024
|
if (!accept.asset && (accept.token || result.headers?.['x-payment-token'])) return true
|
|
1024
|
-
return
|
|
1025
|
+
return false
|
|
1025
1026
|
}
|
|
1026
1027
|
|
|
1027
1028
|
function challengePrice(accept, result) {
|