Skip to content

Commit cbcff70

Browse files
committed
default to cancun
1 parent ba348e9 commit cbcff70

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ module.exports = {
263263
.clickFunction('retrieve - call')
264264
.waitForElementContainsText('[data-id="treeViewLi0"]', 'uint256: 10')
265265
.clickLaunchIcon('filePanel')
266-
.openFile('.states/vm-shanghai/state.json')
266+
.openFile('.states/vm-cancun/state.json')
267267
.getEditorValue((content) => {
268268
browser
269269
.assert.ok(content.includes('"latestBlockNumber": "0x2"'), 'State is saved')
@@ -321,7 +321,7 @@ module.exports = {
321321
.click('*[data-id="Deploy - transact (not payable)"]')
322322
.pause(5000)
323323
.clickLaunchIcon('filePanel')
324-
.openFile('.states/vm-shanghai/state.json')
324+
.openFile('.states/vm-cancun/state.json')
325325
.getEditorValue((content) => {
326326
browser
327327
.assert.ok(content.includes('"latestBlockNumber": "0x2"'), 'State is unchanged')

apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ module.exports = {
344344
.clickLaunchIcon('solidity')
345345
.setSolidityCompilerVersion('builtin')
346346
.click('.remixui_compilerConfigSection')
347-
.setValue('#evmVersionSelector', 'shanghai') // Temporary fix
347+
.setValue('#evmVersionSelector', 'cancun') // Temporary fix
348348
.clickLaunchIcon('filePanel')
349349
.click('*[data-id="treeViewLitreeViewItemcontracts"]')
350350
.openFile('contracts/3_Ballot.sol')

apps/remix-ide/src/blockchain/execution-context.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ web3.eth.setConfig(config)
2323
export class ExecutionContext {
2424
constructor () {
2525
this.event = new EventManager()
26-
this.executionContext = 'vm-shanghai'
26+
this.executionContext = 'vm-cancun'
2727
this.lastBlock = null
2828
this.blockGasLimitDefault = 4300000
2929
this.blockGasLimit = this.blockGasLimitDefault
30-
this.currentFork = 'shanghai'
30+
this.currentFork = 'cancun'
3131
this.mainNetGenesisHash = '0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3'
3232
this.customNetWorks = {}
3333
this.blocks = {}
@@ -37,7 +37,7 @@ export class ExecutionContext {
3737
}
3838

3939
init (config) {
40-
this.executionContext = 'vm-shanghai'
40+
this.executionContext = 'vm-cancun'
4141
this.event.trigger('contextChanged', [this.executionContext])
4242
}
4343

@@ -114,7 +114,7 @@ export class ExecutionContext {
114114

115115
removeProvider (name) {
116116
if (name && this.customNetWorks[name]) {
117-
if (this.executionContext === name) this.setContext('vm-paris', null, null, null)
117+
if (this.executionContext === name) this.setContext('vm-cancun', null, null, null)
118118
delete this.customNetWorks[name]
119119
this.event.trigger('removeProvider', [name])
120120
}

0 commit comments

Comments
 (0)