From a0ec14c7770779ef789b092ca4f84a2799ebc80b Mon Sep 17 00:00:00 2001 From: rsalakhov Date: Thu, 19 Oct 2023 13:24:39 +0300 Subject: [PATCH] update contract data building #2 --- package.json | 2 +- src/amm/contractData.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1c736ed..0ae8782 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@spectrumlabs/cardano-dex-sdk", - "version": "0.1.226", + "version": "0.1.227", "description": "ErgoDEX SDK for Cardano", "main": "build/main/index.js", "typings": "build/main/index.d.ts", diff --git a/src/amm/contractData.ts b/src/amm/contractData.ts index f668a07..eb755a0 100644 --- a/src/amm/contractData.ts +++ b/src/amm/contractData.ts @@ -216,7 +216,7 @@ export function mkAssetClass(ac: AssetClass, R: CardanoWasm): PlutusData { 'old: ', new TextEncoder().encode(ac.name) ) - assetClass.add(R.PlutusData.new_bytes(R.AssetName.from_hex(ac.nameHex).name()) + assetClass.add(R.PlutusData.new_bytes(R.AssetName.from_hex(ac.nameHex).name())) return mkPlutusData(assetClass, R) }