@scallop-io/sui-scallop-sdk 2.0.0-alpha.5 → 2.0.0-alpha.6

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.0-alpha.5",
3
+ "version": "2.0.0-alpha.6",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -251,7 +251,10 @@ export class ScallopUtils {
251
251
 
252
252
  if (isMarketCoinType) {
253
253
  return this.parseMarketCoinName(
254
- parseStructTag(typeParams as any).name.toLowerCase()
254
+ (typeof typeParams[0] === 'string'
255
+ ? parseStructTag(typeParams[0])
256
+ : typeParams[0]
257
+ ).name.toLowerCase()
255
258
  );
256
259
  }
257
260
  const assetCoinName =