diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index 4d2bcee29a..a02d89f00a 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -10,6 +10,7 @@ import VyperResult from './components/VyperResult' import LocalUrlInput from './components/LocalUrl' import ToggleButtonGroup from 'react-bootstrap/ToggleButtonGroup' import ToggleButton from 'react-bootstrap/ToggleButton' +import Button from 'react-bootstrap/Button' import vyperLogo from './logo.svg' import './app.css' @@ -82,6 +83,11 @@ const App: React.FC = () => {
+
+ +
0) { try { - message = message.split('\n\n')[1] + message = message.split('\n\n')[message.split('\n\n').length - 1] } catch (e) {} } if (location.length > 0) { @@ -77,6 +77,7 @@ function CompilerButton({ contract, setOutput, compilerUrl }: Props) { start: { line: parseInt(location[0]) - 1, column: 10 }, end: { line: parseInt(location[0]) - 1, column: 10 } } + console.log("msg = ", message) remixClient.highlight(lineColumnPos as any, _contract.name, message) } }) diff --git a/apps/vyper/src/app/components/LocalUrl.tsx b/apps/vyper/src/app/components/LocalUrl.tsx index 69bbb138e0..47acde9dad 100644 --- a/apps/vyper/src/app/components/LocalUrl.tsx +++ b/apps/vyper/src/app/components/LocalUrl.tsx @@ -20,7 +20,7 @@ function LocalUrlInput({ url, setUrl, environment }: Props) { return (
- Currently we support vyper version > 0.2.16 + Currently we support vyper version > 0.2.16 Local Compiler Url

No contract compiled yet.

- + ) @@ -38,7 +35,11 @@ function VyperResult({ output }: VyperResultProps) { return (
-
{output.message}
+
{output.message}
) } diff --git a/apps/vyper/src/app/components/WarnRemote.tsx b/apps/vyper/src/app/components/WarnRemote.tsx index 1235eebde7..107ab13335 100644 --- a/apps/vyper/src/app/components/WarnRemote.tsx +++ b/apps/vyper/src/app/components/WarnRemote.tsx @@ -11,7 +11,7 @@ function WarnRemoteLabel({ environment }: Props) { } return ( -
The remote compiler should only be used for testing NOT for production environments. For production, use a local compiler.
+ The remote compiler should only be used for testing NOT for production environments. For production, use a local compiler. ) }