diff --git a/src/datanft.ts b/src/datanft.ts index 0a63dc1..1585879 100644 --- a/src/datanft.ts +++ b/src/datanft.ts @@ -164,7 +164,9 @@ export class DataNft { return dataNfts; } } catch (error: any) { - throw new ErrDataNftCreate('Response could not be parsed'); + throw new ErrDataNftCreate( + 'Payload could not be parsed: ' + error.message + ); } } @@ -216,8 +218,8 @@ export class DataNft { checkStatus(res); const data = await res.json(); - const dataNfts: DataNft[] = this.createFromApiResponseOrBulk(data); + const dataNfts: DataNft[] = this.createFromApiResponseOrBulk(data); return dataNfts; } diff --git a/src/sft-minter.ts b/src/sft-minter.ts index ec4a81e..aa24a43 100644 --- a/src/sft-minter.ts +++ b/src/sft-minter.ts @@ -16,7 +16,6 @@ import { itheumTokenIdentifier, minterContractAddress } from './config'; -import { MinterRequirements } from './interfaces'; import dataNftMinterAbi from './abis/datanftmint.abi.json'; import { checkTraitsUrl,