Merge pull request #4652 from ethereum/default_cancun

Default to cancun
pull/4631/head
yann300 8 months ago committed by GitHub
commit 8e8eeb527d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts
  2. 2
      apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts
  3. 8
      apps/remix-ide/src/blockchain/execution-context.js

@ -263,7 +263,7 @@ module.exports = {
.clickFunction('retrieve - call')
.waitForElementContainsText('[data-id="treeViewLi0"]', 'uint256: 10')
.clickLaunchIcon('filePanel')
.openFile('.states/vm-shanghai/state.json')
.openFile('.states/vm-cancun/state.json')
.getEditorValue((content) => {
browser
.assert.ok(content.includes('"latestBlockNumber": "0x2"'), 'State is saved')
@ -321,7 +321,7 @@ module.exports = {
.click('*[data-id="Deploy - transact (not payable)"]')
.pause(5000)
.clickLaunchIcon('filePanel')
.openFile('.states/vm-shanghai/state.json')
.openFile('.states/vm-cancun/state.json')
.getEditorValue((content) => {
browser
.assert.ok(content.includes('"latestBlockNumber": "0x2"'), 'State is unchanged')

@ -344,7 +344,7 @@ module.exports = {
.clickLaunchIcon('solidity')
.setSolidityCompilerVersion('builtin')
.click('.remixui_compilerConfigSection')
.setValue('#evmVersionSelector', 'shanghai') // Temporary fix
.setValue('#evmVersionSelector', 'cancun') // Temporary fix
.clickLaunchIcon('filePanel')
.click('*[data-id="treeViewLitreeViewItemcontracts"]')
.openFile('contracts/3_Ballot.sol')

@ -23,11 +23,11 @@ web3.eth.setConfig(config)
export class ExecutionContext {
constructor () {
this.event = new EventManager()
this.executionContext = 'vm-shanghai'
this.executionContext = 'vm-cancun'
this.lastBlock = null
this.blockGasLimitDefault = 4300000
this.blockGasLimit = this.blockGasLimitDefault
this.currentFork = 'shanghai'
this.currentFork = 'cancun'
this.mainNetGenesisHash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3'
this.customNetWorks = {}
this.blocks = {}
@ -37,7 +37,7 @@ export class ExecutionContext {
}
init (config) {
this.executionContext = 'vm-shanghai'
this.executionContext = 'vm-cancun'
this.event.trigger('contextChanged', [this.executionContext])
}
@ -114,7 +114,7 @@ export class ExecutionContext {
removeProvider (name) {
if (name && this.customNetWorks[name]) {
if (this.executionContext === name) this.setContext('vm-paris', null, null, null)
if (this.executionContext === name) this.setContext('vm-cancun', null, null, null)
delete this.customNetWorks[name]
this.event.trigger('removeProvider', [name])
}

Loading…
Cancel
Save