Skip to content

Commit

Permalink
Use dev-file for contract uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Jun 13, 2024
1 parent 0dc2d58 commit 2eb1485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function uploadEntryToURL ([cid, buffer]: Entry, url: string): Promise<string> {
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}`) {
Expand Down

0 comments on commit 2eb1485

Please sign in to comment.