rollback change on vyper

pull/3348/head
yann300 2 years ago committed by Aniket
parent dd26b23180
commit c95e7977e7
  1. 5
      apps/vyper/src/app/utils/compiler.tsx

@ -43,11 +43,10 @@ export async function compile(url: string, contract: Contract): Promise<VyperCom
if (extension !== 'vy') {
throw new Error('Use extension .vy for Vyper.')
}
const data = JSON.stringify({ code: contract.content })
const response = await fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'Content-Length': data.length.toString() },
body: data
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code: contract.content })
})
if (response.status === 404) {

Loading…
Cancel
Save