From 8846a23b8ad6bbcddda21af75d1f8453c3021fc6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 14:29:30 -0400 Subject: [PATCH] fix: cid is lowercase --- src/methods/upload.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) }; } /**