*Fix typo
This commit is contained in:
parent
a4990e99ef
commit
1a31398647
|
@ -35,14 +35,14 @@ export async function fetchIpfs(
|
||||||
path = "",
|
path = "",
|
||||||
receiveUpdate: DataFn
|
receiveUpdate: DataFn
|
||||||
) {
|
) {
|
||||||
if (!ipfsPath(`/ipfs/{${hash}`)) {
|
if (!ipfsPath(`/ipfs/${hash}`)) {
|
||||||
throw new Error("Invalid hash");
|
throw new Error("Invalid hash");
|
||||||
}
|
}
|
||||||
return doFetch("fetchIpfs", { hash, path }, receiveUpdate);
|
return doFetch("fetchIpfs", { hash, path }, receiveUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function statIpfs(hash: string, path = "") {
|
export async function statIpfs(hash: string, path = "") {
|
||||||
if (!ipfsPath(`/ipfs/{${hash}`)) {
|
if (!ipfsPath(`/ipfs/${hash}`)) {
|
||||||
throw new Error("Invalid hash");
|
throw new Error("Invalid hash");
|
||||||
}
|
}
|
||||||
return doFetch("statIpfs", { hash, path });
|
return doFetch("statIpfs", { hash, path });
|
||||||
|
|
Loading…
Reference in New Issue