rename resolveContract to resolveContractAndAddInstance

pull/5370/head
David Disu 2 years ago
parent 0a73d245bb
commit d1e10d5b96
  1. 4
      apps/remix-ide/src/app/udapp/run-tab.js
  2. 2
      apps/remix-ide/src/blockchain/blockchain.js

@ -19,7 +19,7 @@ const profile = {
version: packageJson.version, version: packageJson.version,
permission: true, permission: true,
events: ['newTransaction'], 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 { export class RunTab extends ViewPlugin {
@ -165,7 +165,7 @@ export class RunTab extends ViewPlugin {
return this.call('fileManager', 'readFile', fileName) return this.call('fileManager', 'readFile', fileName)
} }
resolveContract (contractObject, address) { resolveContractAndAddInstance (contractObject, address) {
const data = this.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) const data = this.compilersArtefacts.getCompilerAbstract(contractObject.contract.file)
this.compilersArtefacts.addResolvedContract(addressToString(address), data) this.compilersArtefacts.addResolvedContract(addressToString(address), data)

@ -173,7 +173,7 @@ export class Blockchain extends Plugin {
return this.call('terminal', 'logHtml', log) 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) this.runTx(args, confirmationCb, continueCb, promptCb, finalCb)

Loading…
Cancel
Save