rename Fork => currentFork

pull/5370/head
yann300 3 years ago
parent cea33d4a5a
commit 9f79dcc7dc
  1. 2
      apps/remix-ide/src/app/tabs/runTab/settings.js
  2. 1
      apps/remix-ide/src/blockchain/blockchain.js
  3. 2
      apps/remix-ide/src/blockchain/execution-context.js
  4. 2
      libs/remix-debug/src/code/codeManager.ts
  5. 2
      libs/remix-debug/src/trace/traceManager.ts

@ -295,7 +295,7 @@ class SettingsUI {
*/
_getProviderDropdownValue () {
const provider = this.blockchain.getProvider()
const fork = this.blockchain.getFork()
const fork = this.blockchain.getCurrentFork()
return provider === 'vm' ? provider + '-' + fork : provider
}

@ -212,6 +212,7 @@ class Blockchain {
* return the fork name applied to the current envionment
* @return {String} - fork name
*/
getCurrentFork () {
return this.executionContext.getCurrentFork()
}

@ -136,7 +136,7 @@ export class ExecutionContext {
return cb()
}
this.currentFork = this.defaultFork
this.currentFork = this.defaultFork // in the case of injected and web3, we default to the last fork.
if (context === 'injected') {
if (injectedProvider === undefined) {

@ -34,7 +34,7 @@ export class CodeManager {
})
})
},
fork: this.traceManager.getFork()
fork: this.traceManager.getCurrentFork()
})
}

@ -72,7 +72,7 @@ export class TraceManager {
this.traceCache.init()
}
getFork () {
getCurrentFork () {
return this.fork
}

Loading…
Cancel
Save