From ee4e8d36ec0fd42e4b5ca11b3b3e639b24e7a3f9 Mon Sep 17 00:00:00 2001 From: drafish Date: Mon, 7 Aug 2023 18:53:10 +0800 Subject: [PATCH] add await for getCompilerAbstract in resolveContractAndAddInstance --- apps/remix-ide/src/app/udapp/run-tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/udapp/run-tab.js b/apps/remix-ide/src/app/udapp/run-tab.js index 49983f5e39..ec389b1db8 100644 --- a/apps/remix-ide/src/app/udapp/run-tab.js +++ b/apps/remix-ide/src/app/udapp/run-tab.js @@ -182,8 +182,8 @@ export class RunTab extends ViewPlugin { return this.call('fileManager', 'readFile', fileName) } - resolveContractAndAddInstance (contractObject, address) { - const data = this.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) + async resolveContractAndAddInstance (contractObject, address) { + const data = await this.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) this.compilersArtefacts.addResolvedContract(addressToString(address), data) this.addInstance(address, contractObject.abi, contractObject.name)