diff --git a/apps/remix-ide/src/app/udapp/run-tab.js b/apps/remix-ide/src/app/udapp/run-tab.js index b203d7e384..8a1e30324e 100644 --- a/apps/remix-ide/src/app/udapp/run-tab.js +++ b/apps/remix-ide/src/app/udapp/run-tab.js @@ -19,7 +19,7 @@ const profile = { version: packageJson.version, permission: true, events: ['newTransaction'], - methods: ['createVMAccount', 'sendTransaction', 'getAccounts', 'pendingTransactionsCount', 'getSettings', 'setEnvironmentMode', 'clearAllInstances', 'addInstance', 'resolveContract'] + methods: ['createVMAccount', 'sendTransaction', 'getAccounts', 'pendingTransactionsCount', 'getSettings', 'setEnvironmentMode', 'clearAllInstances', 'addInstance', 'resolveContractAndAddInstance'] } export class RunTab extends ViewPlugin { @@ -165,7 +165,7 @@ export class RunTab extends ViewPlugin { return this.call('fileManager', 'readFile', fileName) } - resolveContract (contractObject, address) { + resolveContractAndAddInstance (contractObject, address) { const data = this.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) this.compilersArtefacts.addResolvedContract(addressToString(address), data) diff --git a/apps/remix-ide/src/blockchain/blockchain.js b/apps/remix-ide/src/blockchain/blockchain.js index 1d21be1c6e..5f6d3ad6c6 100644 --- a/apps/remix-ide/src/blockchain/blockchain.js +++ b/apps/remix-ide/src/blockchain/blockchain.js @@ -173,7 +173,7 @@ export class Blockchain extends Plugin { return this.call('terminal', 'logHtml', log) } - return this.call('udapp', 'resolveContract', implementationContractObject, address) + return this.call('udapp', 'resolveContractAndAddInstance', implementationContractObject, address) } this.runTx(args, confirmationCb, continueCb, promptCb, finalCb)