From 1b319a98940c96488eb5ecd72aedad66878624b8 Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Thu, 4 Dec 2025 10:11:06 -0800 Subject: [PATCH] fix: change Transaction.value type from number to string to prevent overflow JavaScript's Number type can only safely represent integers up to 2^53-1. When the API returns large wei values (like NFT prices in wei), they can overflow and become negative values like -1617240366657743600. This fix changes Transaction.value type from number to string, which: - Prevents integer overflow for large wei values - Works with ethers.js which accepts strings as BigNumberish - Matches how the API should serialize large integer values --- src/orders/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/orders/types.ts b/src/orders/types.ts index 87c036189..ef7d5a387 100644 --- a/src/orders/types.ts +++ b/src/orders/types.ts @@ -79,7 +79,7 @@ type Transaction = { function: string; chain: number; to: string; - value: number; + value: string; input_data: | { // For fulfillAdvancedOrder