update default versions. clone from vyperlang

pull/5178/head
Joseph Izang 2 months ago
parent 7a9ed0f328
commit f4d70d4a09
  1. 6
      apps/vyper/src/app/utils/compiler.tsx
  2. 18
      apps/vyper/src/app/utils/remix-client.tsx

@ -111,10 +111,10 @@ const compileReturnType = (output, contract) => {
const normal = normalizeContractPath(contract)[2] const normal = normalizeContractPath(contract)[2]
const abi = temp[normal]['abi'] const abi = temp[normal]['abi']
const evm = _.merge(temp[normal]['evm']) const evm = _.merge(temp[normal]['evm'])
const dpb = evm.deployedBytecode const depByteCode = evm.deployedBytecode
const runtimeBytecode = evm.bytecode const runtimeBytecode = evm.bytecode
const methodIdentifiers = evm.methodIdentifiers const methodIdentifiers = evm.methodIdentifiers
const version = output?.compilers[0]?.version ?? '0.3.10' const version = output?.compilers[0]?.version ?? '0.4.0'
const optimized = output?.compilers[0]?.settings?.optimize ?? true const optimized = output?.compilers[0]?.settings?.optimize ?? true
const evmVersion = '' const evmVersion = ''
@ -131,7 +131,7 @@ const compileReturnType = (output, contract) => {
} = { } = {
contractName: normal, contractName: normal,
abi, abi,
bytecode: dpb, bytecode: depByteCode,
runtimeBytecode, runtimeBytecode,
ir: '', ir: '',
methodIdentifiers, methodIdentifiers,

@ -90,15 +90,15 @@ export class RemixClient extends PluginClient<any, CustomRemixApi> {
{ url: 'https://github.com/vyperlang/vyper', token: null, branch: 'master', singleBranch: false, workspaceName: 'vyper' }, { url: 'https://github.com/vyperlang/vyper', token: null, branch: 'master', singleBranch: false, workspaceName: 'vyper' },
) )
await this.call( // await this.call(
'dgitApi', // 'dgitApi',
'checkout', // 'checkout',
{ // {
ref:'v0.0.5', // ref:'v0.0.5',
force: true, // force: true,
refresh: true, // refresh: true,
} // }
) // )
this.call( this.call(
// @ts-ignore // @ts-ignore

Loading…
Cancel
Save