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 7de2d8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function $ (command: string) {
const { default: { version } } = await import('../package.json', { with: { type: "json" } })

export async function compile () {
const archs = ['x86_64-unknown-linux-gnu', 'aarch64-unknown-linux-gnu', 'x86_64-pc-windows-msvc', 'x86_64-apple-darwin', 'aarch64-apple-darwin']
const archs = ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-msvc', 'x86_64-apple-darwin', 'aarch64-apple-darwin']
for (const arch of archs) {
const dir = `./dist/tmp/${arch}`
const bin = arch.includes('windows') ? 'chel.exe' : 'chel'
Expand Down
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 7de2d8f

Please sign in to comment.