From 1a313986477da05007209842b505a3015c905956 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 5 Aug 2022 19:10:10 -0400 Subject: [PATCH] *Fix typo --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 480fc53..ea19f42 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,14 +35,14 @@ export async function fetchIpfs( path = "", receiveUpdate: DataFn ) { - if (!ipfsPath(`/ipfs/{${hash}`)) { + if (!ipfsPath(`/ipfs/${hash}`)) { throw new Error("Invalid hash"); } return doFetch("fetchIpfs", { hash, path }, receiveUpdate); } export async function statIpfs(hash: string, path = "") { - if (!ipfsPath(`/ipfs/{${hash}`)) { + if (!ipfsPath(`/ipfs/${hash}`)) { throw new Error("Invalid hash"); } return doFetch("statIpfs", { hash, path });