don't load source location is compilation data not available

pull/1/head
yann300 7 years ago
parent cd63112f9b
commit ba8682c866
  1. 5
      src/app/debugger/debugger.js

@ -75,7 +75,10 @@ Debugger.prototype.debug = function (txHash) {
var self = this var self = this
this.debugger.web3().eth.getTransaction(txHash, function (error, tx) { this.debugger.web3().eth.getTransaction(txHash, function (error, tx) {
if (!error) { if (!error) {
self.debugger.setCompilationResult(self.appAPI.lastCompilationResult().data) var compilationResult = self.appAPI.lastCompilationResult()
if (compilationResult) {
self.debugger.setCompilationResult(compilationResult.data)
}
self.debugger.debug(tx) self.debugger.debug(tx)
} }
}) })

Loading…
Cancel
Save