pull/4182/head
Joseph Izang 12 months ago
parent 203fdd7b47
commit c77f0068d8
  1. 1
      apps/vyper/src/app/app.tsx
  2. 1
      apps/vyper/src/app/components/CompilerButton.tsx
  3. 4
      apps/vyper/src/app/utils/compiler.tsx

@ -105,7 +105,6 @@ const App: React.FC = () => {
/>
</div>
{console.log(output)}
<article id="result" className="px-2 mx-2 border-top mt-3">
{
output && Object.keys(output).length > 0 && output.status !== 'failed' ? (

@ -52,7 +52,6 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}:
}
const compileReturnType = () => {
const t: any = toStandardOutput(contract, output)
console.log(t)
const temp = _.merge(t['contracts'][contract])
const normal = normalizeContractPath(contract)[2]
const abi = temp[normal]['abi']

@ -87,7 +87,7 @@ export async function compile(url: string, contract: Contract): Promise<any> {
}
}
let response = await axios.post(`${url}compile`, compilePackage )
console.log(response)
if (response.status === 404) {
throw new Error(`Vyper compiler not found at "${url}".`)
}
@ -107,7 +107,7 @@ export async function compile(url: string, contract: Contract): Promise<any> {
result = await(await axios.get(url + 'artifacts/' + compileCode , {
method: 'Get'
})).data
console.log(result)
return result
} else if (status === 'FAILED') {
const intermediate = await(await axios.get(url + 'exceptions/' + compileCode , {

Loading…
Cancel
Save