add await for getCompilerAbstract in resolveContractAndAddInstance

pull/3973/head
drafish 1 year ago committed by Aniket
parent 4549cbc7b0
commit ee4e8d36ec
  1. 4
      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)

Loading…
Cancel
Save