From 7547e833e879d39b73ad28848c98ddda17385839 Mon Sep 17 00:00:00 2001 From: Damian Date: Wed, 15 May 2024 00:45:33 +0300 Subject: [PATCH] fix: pinata image upload --- package-lock.json | 4 ++-- package.json | 2 +- src/common/mint-utils.ts | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 604d7f5..81db0c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "3.4.0", + "version": "3.5.0-alpha.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@itheum/sdk-mx-data-nft", - "version": "3.4.0", + "version": "3.5.0-alpha.6", "license": "GPL-3.0-only", "dependencies": { "@multiversx/sdk-core": "12.18.0", diff --git a/package.json b/package.json index ec189e0..54b53ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "3.5.0-alpha.5", + "version": "3.5.0-alpha.6", "description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/common/mint-utils.ts b/src/common/mint-utils.ts index a0b7dc3..3cae9bb 100644 --- a/src/common/mint-utils.ts +++ b/src/common/mint-utils.ts @@ -61,8 +61,7 @@ async function storeImageToIpfs(image: Blob, storageToken: string) { const options = { method: 'POST', headers: { - Authorization: `Bearer ${storageToken}`, - 'Content-Type': 'multipart/form-data' + Authorization: `Bearer ${storageToken}` }, body: form };