*Fix typo

This commit is contained in:
Derrick Hammer 2022-08-05 19:10:10 -04:00
parent a4990e99ef
commit 1a31398647
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -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 });