pass executionContext as param instead of relying in a global var

pull/1/head
Iuri Matias 5 years ago
parent 71cee611d8
commit a7421820f9
  1. 2
      src/app/tabs/runTab/model/recorder.js

@ -261,7 +261,7 @@ class Recorder {
console.error(err) console.error(err)
logCallBack(err + '. Execution failed at ' + index) logCallBack(err + '. Execution failed at ' + index)
} else { } 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) { if (rawAddress) {
const stringAddress = self.addressToString(rawAddress) const stringAddress = self.addressToString(rawAddress)
const address = ethutil.toChecksumAddress(stringAddress) const address = ethutil.toChecksumAddress(stringAddress)

Loading…
Cancel
Save