@bulletxyz/bullet-sdk 0.49.0 → 0.49.1
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.
package/dist/node/index.js
CHANGED
|
@@ -1584,11 +1584,6 @@ function serialize(value) {
|
|
|
1584
1584
|
return value;
|
|
1585
1585
|
if (Decimal.isDecimal(value))
|
|
1586
1586
|
return value.toFixed();
|
|
1587
|
-
if (typeof value === "bigint") {
|
|
1588
|
-
if (value > BigInt(Number.MAX_SAFE_INTEGER))
|
|
1589
|
-
throw new Error(`BigInt value ${value} is too large for safe conversion`);
|
|
1590
|
-
return Number(value);
|
|
1591
|
-
}
|
|
1592
1587
|
if (value instanceof Set)
|
|
1593
1588
|
return Array.from(value).map(serialize);
|
|
1594
1589
|
if (value instanceof Map)
|
|
@@ -2545,7 +2540,7 @@ class ReadOnlyClient {
|
|
|
2545
2540
|
if (!this.assetInfoRegistry)
|
|
2546
2541
|
throw new Error("Asset registry not initialized. Call initializeRegistries() first.");
|
|
2547
2542
|
let assetInfo = this.assetInfoRegistry.get(assetName);
|
|
2548
|
-
if (!assetInfo
|
|
2543
|
+
if (!assetInfo?.tokenId)
|
|
2549
2544
|
throw new Error(`Token address not found for asset ${assetName}`);
|
|
2550
2545
|
return assetInfo.tokenId;
|
|
2551
2546
|
}
|
|
@@ -4421,4 +4416,4 @@ export {
|
|
|
4421
4416
|
AbortError
|
|
4422
4417
|
};
|
|
4423
4418
|
|
|
4424
|
-
//# debugId=
|
|
4419
|
+
//# debugId=C1C983582E16EF4D64756E2164756E21
|