changes to talk to hetzner

pull/4182/head
Joseph Izang 1 year ago
parent 5bb96b4369
commit 215329f69b
  1. 4
      apps/vyper/src/app/app.tsx
  2. 2
      apps/vyper/src/app/utils/compiler.tsx

@ -109,7 +109,7 @@ const App: React.FC = () => {
} }
function compilerUrl() { function compilerUrl() {
return state.environment === 'remote' ? 'https://vyper.remixproject.org' : state.localUrl return state.environment === 'remote' ? 'https://vyper2.remixproject.org/' : state.localUrl
} }
return ( return (
@ -131,7 +131,7 @@ const App: React.FC = () => {
</div> </div>
<ToggleButtonGroup name="remote" onChange={setEnvironment} type="radio" value={state.environment}> <ToggleButtonGroup name="remote" onChange={setEnvironment} type="radio" value={state.environment}>
<ToggleButton data-id="remote-compiler" variant="secondary" name="remote" value="remote"> <ToggleButton data-id="remote-compiler" variant="secondary" name="remote" value="remote">
Remote Compiler v0.2.16 Remote Compiler v0.3.10
</ToggleButton> </ToggleButton>
<ToggleButton data-id="local-compiler" variant="secondary" name="local" value="local"> <ToggleButton data-id="local-compiler" variant="secondary" name="local" value="local">
Local Compiler Local Compiler

@ -66,7 +66,7 @@ export async function compile(url: string, contract: Contract): Promise<VyperCom
const nameResult = normalizeContractPath(contract.name) const nameResult = normalizeContractPath(contract.name)
files.append('files', content, `${nameResult[2]}.vy`) files.append('files', content, `${nameResult[2]}.vy`)
const response = await axios.post(url + '/compile?vyper_version=0.3.10', files) const response = await axios.post(url + 'compile?vyper_version=0.3.10', files)
if (response.status === 404) { if (response.status === 404) {
throw new Error(`Vyper compiler not found at "${url}".`) throw new Error(`Vyper compiler not found at "${url}".`)

Loading…
Cancel
Save