From 2eb14852ea376e7d152f508045b2b98f25db4860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Iv=C3=A1n=20Vieitez=20Parra?= <3857362+corrideat@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:42:47 +0000 Subject: [PATCH] Use `dev-file` for contract uploads --- src/upload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload.ts b/src/upload.ts index 8a9fdea..3e29c7d 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -31,7 +31,7 @@ function uploadEntryToURL ([cid, buffer]: Entry, url: string): Promise { const form = new FormData() form.append('hash', cid) form.append('data', new Blob([buffer])) - return fetch(`${url}/file`, { method: 'POST', body: form }) + return fetch(`${url}/dev-file`, { method: 'POST', body: form }) .then(handleFetchResult('text')) .then(r => { if (r !== `/file/${cid}`) {