From 4871bae381cc9ee246dbc4be1d24f133217dff3a Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 10 Jan 2023 08:35:28 +0100 Subject: [PATCH] fix reference --- apps/remix-ide/src/app/tabs/runTab/model/recorder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/model/recorder.js b/apps/remix-ide/src/app/tabs/runTab/model/recorder.js index a71cac4f98..f1d6739117 100644 --- a/apps/remix-ide/src/app/tabs/runTab/model/recorder.js +++ b/apps/remix-ide/src/app/tabs/runTab/model/recorder.js @@ -7,7 +7,7 @@ import * as packageJson from '../../../../.././../../package.json' var EventManager = remixLib.EventManager var format = remixLib.execution.txFormat var txHelper = remixLib.execution.txHelper -const helper = require('../../../../lib/helper') +import { addressToString } from '@remix-ui/helper' const _paq = window._paq = window._paq || [] //eslint-disable-line @@ -83,7 +83,7 @@ class Recorder extends Plugin { if (call) return const rawAddress = txResult.receipt.contractAddress if (!rawAddress) return // not a contract creation - const address = helper.addressToString(rawAddress) + const address = addressToString(rawAddress) // save back created addresses for the convertion from tokens to real adresses this.data._createdContracts[address] = timestamp this.data._createdContractsReverse[timestamp] = address @@ -278,7 +278,7 @@ class Recorder extends Plugin { return logCallBack(err + '. Execution failed at ' + index) } if (rawAddress) { - const address = helper.addressToString(rawAddress) + const address = addressToString(rawAddress) // save back created addresses for the convertion from tokens to real adresses this.data._createdContracts[address] = tx.timestamp this.data._createdContractsReverse[tx.timestamp] = address