diff --git a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts index d8e6a14506..24388def61 100644 --- a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts +++ b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts @@ -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') diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts index dfe567603e..3c195c99cd 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts @@ -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') diff --git a/apps/remix-ide/src/blockchain/execution-context.js b/apps/remix-ide/src/blockchain/execution-context.js index 6079a44238..b54b8d371b 100644 --- a/apps/remix-ide/src/blockchain/execution-context.js +++ b/apps/remix-ide/src/blockchain/execution-context.js @@ -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]) }