diff --git a/src/rpc/ipfs.ts b/src/rpc/ipfs.ts index 56f60e7..23b7f86 100644 --- a/src/rpc/ipfs.ts +++ b/src/rpc/ipfs.ts @@ -202,7 +202,7 @@ async function fileExists( } async function resolveIpns(hash: string, path: string): Promise { - let fullPath = `${hash}/${path}`; + let fullPath = `${hash}/${path}`.replace(/\/+/, "/"); client = client as IPFS;