From 5c8220a7cc7156226f1da45a750317f54ac4108e Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 26 Feb 2024 23:25:06 +0100 Subject: [PATCH] update as per review comments --- apps/vyper/src/app/app.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index 84963fa6d9..62dd4bb1aa 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -46,7 +46,10 @@ const App = () => { async function start() { try { await remixClient.loaded() - remixClient.onFileChange((name) => setContract(name)) + remixClient.onFileChange((name) => { + setOutput({}) + setContract(name) + }) remixClient.onNoFileSelected(() => setContract('')) } catch (err) { console.log(err) @@ -146,7 +149,7 @@ const App = () => { Specify the{' '} - + compiler version {' '} &{' '}