diff --git a/src/methods/upload.ts b/src/methods/upload.ts index 9f89a62..34ae73e 100644 --- a/src/methods/upload.ts +++ b/src/methods/upload.ts @@ -118,7 +118,7 @@ export async function uploadSmallFile( ): Promise { const response = await this.uploadSmallFileRequest(file, customOptions); - return { cid: CID.decode(response.CID) }; + return { cid: CID.decode(response.cid) }; } /** @@ -288,7 +288,7 @@ export async function uploadDirectory( customOptions, ); - return { cid: CID.decode(response.CID) }; + return { cid: CID.decode(response.cid) }; } /** @@ -342,7 +342,7 @@ export async function uploadWebapp( ): Promise { const response = await this.uploadWebappRequest(directory, customOptions); - return { cid: CID.decode(response.CID) }; + return { cid: CID.decode(response.cid) }; } /**