Skip to content

Commit

Permalink
Merge pull request #39 from okTurtles/dev-file-for-contract-uploads
Browse files Browse the repository at this point in the history
Use `dev-file` for contract uploads
  • Loading branch information
taoeffect authored Jun 13, 2024
2 parents 0dc2d58 + 2eb1485 commit 54418aa
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 54418aa

Please sign in to comment.