diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index 727ec9f9d5..ee0bf5fec7 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -108,7 +108,7 @@ const App: React.FC = () => { {console.log(output)}
{ - output && Object.keys(output).length > 0 ? ( + 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 6fa418ab62..8e81530994 100644 --- a/apps/vyper/src/app/components/CompilerButton.tsx +++ b/apps/vyper/src/app/components/CompilerButton.tsx @@ -43,10 +43,13 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}: try { output = await compile(compilerUrl, _contract) } catch (e: any) { - setOutput(_contract.name, {status: 'failed', message: e.message}) + remixClient.changeStatus({ + key: 'failed', + type: 'error', + title: e.message + }) return } - console.log({ output }) const compileReturnType = () => { const t: any = toStandardOutput(contract, output) console.log(t) @@ -130,11 +133,13 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}: return ( - diff --git a/apps/vyper/src/app/utils/compiler.tsx b/apps/vyper/src/app/utils/compiler.tsx index b9b6fc3dd2..c8193d1b05 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}".`) }