We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2412a69 commit ae3a122Copy full SHA for ae3a122
.changeset/plain-maps-draw.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Fix network comparison when using diff libraries
packages/thirdweb/src/x402/common.ts
@@ -162,7 +162,8 @@ export async function decodePaymentRequest(
162
const selectedPaymentRequirements = paymentRequirements.find(
163
(value) =>
164
value.scheme === decodedPayment.scheme &&
165
- value.network === decodedPayment.network,
+ networkToChainId(value.network) ===
166
+ networkToChainId(decodedPayment.network),
167
);
168
if (!selectedPaymentRequirements) {
169
return {
0 commit comments