@scallop-io/sui-scallop-sdk 1.3.5-alpha.3 → 1.3.5-alpha.4

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/index.js CHANGED
@@ -4902,8 +4902,8 @@ var ScallopUtils = class {
4902
4902
  * @param coinName - Specific support coin name.
4903
4903
  * @return Coin type.
4904
4904
  */
4905
- parseCoinType(coinName) {
4906
- if (sCoinIds[coinName]) {
4905
+ parseCoinType(coinName, useOldMarketCoin = false) {
4906
+ if (sCoinIds[coinName] && !useOldMarketCoin) {
4907
4907
  return sCoinIds[coinName];
4908
4908
  }
4909
4909
  coinName = isMarketCoin(coinName) ? this.parseCoinName(coinName) : coinName;
@@ -5011,7 +5011,7 @@ var ScallopUtils = class {
5011
5011
  */
5012
5012
  parseMarketCoinType(coinName) {
5013
5013
  const protocolObjectId = this.address.get("core.object") ?? PROTOCOL_OBJECT_ID;
5014
- const coinType = this.parseCoinType(coinName);
5014
+ const coinType = this.parseCoinType(coinName, true);
5015
5015
  return `${protocolObjectId}::reserve::MarketCoin<${coinType}>`;
5016
5016
  }
5017
5017
  parseCoinNameFromType(coinType) {