|
|
@ -38,7 +38,7 @@ const App: React.FC = () => { |
|
|
|
async function start() { |
|
|
|
async function start() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
await remixClient.loaded() |
|
|
|
await remixClient.loaded() |
|
|
|
remixClient.onFileChange(name => setContract(name))
|
|
|
|
remixClient.onFileChange(name => setContract(name)) |
|
|
|
remixClient.onNoFileSelected(() => setContract('')) |
|
|
|
remixClient.onNoFileSelected(() => setContract('')) |
|
|
|
} catch (err) { |
|
|
|
} catch (err) { |
|
|
|
console.log(err) |
|
|
|
console.log(err) |
|
|
@ -111,7 +111,7 @@ const App: React.FC = () => { |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<article id="result"> |
|
|
|
<article id="result"> |
|
|
|
<VyperResult output={contract ? output[contract] : undefined} /> |
|
|
|
{/* <VyperResult output={contract ? output[contract] : undefined} /> */} |
|
|
|
</article> |
|
|
|
</article> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
</main> |
|
|
|
</main> |
|
|
|