pass executionContext as param instead of relying in a global var

pull/5370/head
Iuri Matias 5 years ago
parent 1b542faf4b
commit 1f70d0d943
  1. 2
      src/app/tabs/runTab/model/recorder.js

@ -261,7 +261,7 @@ class Recorder {
console.error(err)
logCallBack(err + '. Execution failed at ' + index)
} else {
const rawAddress = this.executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress
const rawAddress = self.executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress
if (rawAddress) {
const stringAddress = self.addressToString(rawAddress)
const address = ethutil.toChecksumAddress(stringAddress)

Loading…
Cancel
Save