diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index ee0bf5fec7..7b9d99c4a7 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -105,7 +105,6 @@ const App: React.FC = () => { /> - {console.log(output)}
{ output && Object.keys(output).length > 0 && output.status !== 'failed' ? ( diff --git a/apps/vyper/src/app/components/CompilerButton.tsx b/apps/vyper/src/app/components/CompilerButton.tsx index 67de8e0f18..dbd99b1462 100644 --- a/apps/vyper/src/app/components/CompilerButton.tsx +++ b/apps/vyper/src/app/components/CompilerButton.tsx @@ -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'] diff --git a/apps/vyper/src/app/utils/compiler.tsx b/apps/vyper/src/app/utils/compiler.tsx index c8193d1b05..bd86bbf3bf 100644 --- a/apps/vyper/src/app/utils/compiler.tsx +++ b/apps/vyper/src/app/utils/compiler.tsx @@ -87,7 +87,7 @@ export async function compile(url: string, contract: Contract): Promise { } } 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 { 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 , {