diff --git a/cli/src/lib/website/read.ts b/cli/src/lib/website/read.ts index b6aa30d..3090855 100644 --- a/cli/src/lib/website/read.ts +++ b/cli/src/lib/website/read.ts @@ -22,12 +22,12 @@ export async function listFiles( const allStorageKeys = await provider.getStorageKeys( scAddress, FILE_LOCATION_TAG - ) - const fileLocations = await provider.readStorage(scAddress, allStorageKeys) - - const textDecoder = new TextDecoder() + ); + const fileLocations = await provider.readStorage(scAddress, allStorageKeys); - return fileLocations.map((location) => textDecoder.decode(location)) + return fileLocations.map((location) => + String.fromCharCode(...new Uint8Array(location)) + ); } /**