Update blockchain.js

yann300-patch-50
yann300 2 years ago committed by GitHub
parent f790e02e90
commit 4527ab3c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      apps/remix-ide/src/blockchain/blockchain.js

@ -13,7 +13,8 @@ import { execution, EventManager, helpers } from '@remix-project/remix-lib'
import { etherScanLink } from './helper'
import { logBuilder, cancelUpgradeMsg, cancelProxyMsg, addressToString } from "@remix-ui/helper"
const { txFormat, txExecution, typeConversion, txListener: Txlistener, TxRunner, TxRunnerWeb3, txHelper } = execution
const { resultToRemixTx } = helpers
const { txResultHelper } = helpers
const { resultToRemixTx } = txResultHelper
const packageJson = require('../../../../package.json')
const _paq = window._paq = window._paq || [] //eslint-disable-line
@ -387,6 +388,14 @@ export class Blockchain extends Plugin {
return this.executionContext.getCurrentFork()
}
/**
* return the fork name applied to the current envionment
* @return {String} - fork name
*/
getCurrentRawContext () {
return this.executionContext.getCurrentRawContext()
}
isWeb3Provider () {
const isVM = this.getProvider() === 'vm'
const isInjected = this.getProvider() === 'injected'

Loading…
Cancel
Save