From 4527ab3c9305fc098c19d0eaadd0e793128fbe98 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 3 Feb 2023 16:16:28 +0100 Subject: [PATCH] Update blockchain.js --- apps/remix-ide/src/blockchain/blockchain.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/blockchain/blockchain.js b/apps/remix-ide/src/blockchain/blockchain.js index c9a1545353..b20efed856 100644 --- a/apps/remix-ide/src/blockchain/blockchain.js +++ b/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'