|
|
@ -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) |
|
|
|