diff --git a/apps/vyper/src/app/app.css b/apps/vyper/src/app/app.css index 978406926a..db9ee76b63 100644 --- a/apps/vyper/src/app/app.css +++ b/apps/vyper/src/app/app.css @@ -49,7 +49,7 @@ html, body, #root, main { } #compile-btn { - width: 90%; + width: 100%; } #compile-btn * { @@ -60,7 +60,6 @@ html, body, #root, main { flex: 1; display: flex; flex-direction: column; - justify-content: center; align-items: center; width: 100%; padding-top: 10px; diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index 52de571be8..ad91f29c3f 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' @@ -68,7 +69,7 @@ const App: React.FC = () => { return (
-
+
Vyper logo

yper Compiler

@@ -82,6 +83,11 @@ const App: React.FC = () => {
+
+ +
{ value={state.environment} > - Remote Compiler + Remote Compiler v0.2.16 Local Compiler @@ -101,7 +107,7 @@ const App: React.FC = () => { environment={state.environment} /> -
+
{ } />
-
+
diff --git a/apps/vyper/src/app/components/CompilerButton.tsx b/apps/vyper/src/app/components/CompilerButton.tsx index c7fe318f0d..fba082575b 100644 --- a/apps/vyper/src/app/components/CompilerButton.tsx +++ b/apps/vyper/src/app/components/CompilerButton.tsx @@ -69,7 +69,7 @@ function CompilerButton({ contract, setOutput, compilerUrl }: Props) { errorIndex = errorIndex + 4 if (message && message.split('\n\n').length > 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) { @@ -103,8 +103,9 @@ function CompilerButton({ contract, setOutput, compilerUrl }: Props) { } return ( - ) } diff --git a/apps/vyper/src/app/components/LocalUrl.tsx b/apps/vyper/src/app/components/LocalUrl.tsx index 5e2dcbacf1..47acde9dad 100644 --- a/apps/vyper/src/app/components/LocalUrl.tsx +++ b/apps/vyper/src/app/components/LocalUrl.tsx @@ -18,17 +18,18 @@ function LocalUrlInput({ url, setUrl, environment }: Props) { } return ( -
- - Local Compiler Url - - - - -
+
+ + Currently we support vyper version > 0.2.16 + Local Compiler Url + + + + +
) } diff --git a/apps/vyper/src/app/components/VyperResult.tsx b/apps/vyper/src/app/components/VyperResult.tsx index e58f901fea..44ccba7b7f 100644 --- a/apps/vyper/src/app/components/VyperResult.tsx +++ b/apps/vyper/src/app/components/VyperResult.tsx @@ -3,7 +3,6 @@ import { VyperCompilationResult, VyperCompilationOutput, isCompilationError, - remixClient } from '../utils'; import Tabs from 'react-bootstrap/Tabs' import Tab from 'react-bootstrap/Tab' @@ -11,7 +10,6 @@ import Button from 'react-bootstrap/Button'; import JSONTree from 'react-json-view' import { CopyToClipboard } from '@remix-ui/clipboard' - interface VyperResultProps { output?: VyperCompilationOutput; } @@ -27,19 +25,21 @@ function VyperResult({ output }: VyperResultProps) { if (!output) return (
-

No contract compiled yet.

- +

No contract compiled yet.

) if (isCompilationError(output)) { return ( -
- -
{output.message}
-
) +
+ +
{output.message}
+
+ ) } return ( 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. ) }