diff --git a/apps/vyper/src/app/app.tsx b/apps/vyper/src/app/app.tsx index aa4ab4093f..ebe9812988 100644 --- a/apps/vyper/src/app/app.tsx +++ b/apps/vyper/src/app/app.tsx @@ -31,7 +31,7 @@ const App: React.FC = () => { const [state, setState] = useState({ status: 'idle', environment: 'local', - localUrl: 'http://localhost:8000/compile' + localUrl: 'http://localhost:8000' }) useEffect(() => { @@ -61,7 +61,7 @@ const App: React.FC = () => { } function compilerUrl() { - return state.environment === 'remote' ? 'https://vyper.remixproject.org/compile' : state.localUrl + return state.environment === 'remote' ? 'https://vyper.remixproject.org' : state.localUrl } return ( diff --git a/apps/vyper/src/app/utils/compiler.tsx b/apps/vyper/src/app/utils/compiler.tsx index d1312322c4..cecfe687d7 100644 --- a/apps/vyper/src/app/utils/compiler.tsx +++ b/apps/vyper/src/app/utils/compiler.tsx @@ -43,10 +43,16 @@ export async function compile(url: string, contract: Contract): Promise setTimeout(() => resolve({}), 2000)) + } } /**