Skip to content

Commit a556149

Browse files
committed
fixed upload return hash
1 parent 2ef39ed commit a556149

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@quest-chains/sdk",
33
"description": "An SDK for building applications on top of Quest Chains",
4-
"version": "0.2.9",
4+
"version": "0.2.10",
55
"license": "GPL-3.0",
66
"main": "dist/index.js",
77
"typings": "dist/index.d.ts",

src/metadata/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class MetadataUploader extends EventEmitter {
7171

7272
try {
7373
const res = await axios.post(`${apiUrl ?? this.apiUrl}/upload/files`, formData, config);
74-
return res.data.response;
74+
return res.data.response['/'];
7575
} catch (error) {
7676
throw new Error(((error as AxiosError).response?.data as HttpResponse).error);
7777
}

0 commit comments

Comments
 (0)