update as per review comments

pull/4571/head
Joseph Izang 9 months ago committed by Aniket
parent 994f261741
commit 5c8220a7cc
  1. 7
      apps/vyper/src/app/app.tsx

@ -46,7 +46,10 @@ const App = () => {
async function start() { async function start() {
try { try {
await remixClient.loaded() await remixClient.loaded()
remixClient.onFileChange((name) => setContract(name)) remixClient.onFileChange((name) => {
setOutput({})
setContract(name)
})
remixClient.onNoFileSelected(() => setContract('')) remixClient.onNoFileSelected(() => setContract(''))
} catch (err) { } catch (err) {
console.log(err) console.log(err)
@ -146,7 +149,7 @@ const App = () => {
<LocalUrlInput url={state.localUrl} setUrl={setLocalUrl} environment={state.environment} /> <LocalUrlInput url={state.localUrl} setUrl={setLocalUrl} environment={state.environment} />
<span className="px-3 mt-1 mb-1 small text-warning"> <span className="px-3 mt-1 mb-1 small text-warning">
Specify the{' '} Specify the{' '}
<a className="text-warning" target="_blank" href="https://"> <a className="text-warning" target="_blank" href="https://remix-ide.readthedocs.io/en/latest/vyper.html#specify-vyper-version">
compiler version compiler version
</a>{' '} </a>{' '}
&{' '} &{' '}

Loading…
Cancel
Save