@scallop-io/sui-scallop-sdk 2.0.10 → 2.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -404,7 +404,10 @@ export class ScallopConstants {
404
404
  )
405
405
  .map(([key, value]) => {
406
406
  const parsedValue = Object.fromEntries(
407
- Object.entries(value).map(([k, v]) => [k, v || undefined])
407
+ Object.entries(value).map(([k, v]) => [
408
+ k,
409
+ typeof v === 'boolean' ? (v ?? false) : v || undefined,
410
+ ])
408
411
  );
409
412
  return [key, parsedValue as PoolAddress];
410
413
  })