update udapp from master to this branch

pull/1/head
Rob Stupay 8 years ago
parent 50b4131664
commit 26b37b3e59
  1. 26
      src/app.js

@ -168,6 +168,7 @@ module.exports = App
function run () { function run () {
var self = this var self = this
// ----------------- UniversalDApp ----------------- // ----------------- UniversalDApp -----------------
var transactionContextAPI = { var transactionContextAPI = {
getAddress: (cb) => { getAddress: (cb) => {
@ -199,6 +200,7 @@ function run () {
startdebugging(txResult.transactionHash) startdebugging(txResult.transactionHash)
}) })
// ----------------- Tx listener ----------------- // ----------------- Tx listener -----------------
var transactionReceiptResolver = { var transactionReceiptResolver = {
_transactionReceipts: {}, _transactionReceipts: {},
@ -400,30 +402,6 @@ function run () {
} }
var renderer = new Renderer(rendererAPI) var renderer = new Renderer(rendererAPI)
// ----------------- StaticAnalysis -----------------
var staticAnalysisAPI = {
renderWarning: (label, warningContainer, type) => {
return renderer.error(label, warningContainer, type)
},
offsetToLineColumn: (location, file) => {
return offsetToLineColumnConverter.offsetToLineColumn(location, file, compiler.lastCompilationResult)
}
}
var udapp = new UniversalDApp({
api: {
logMessage: (msg) => {
self._components.editorpanel.log({ type: 'log', value: msg })
}
},
opt: { removable: false, removable_instances: true }
})
udapp.reset({}, transactionContextAPI)
udapp.event.register('debugRequested', this, function (txResult) {
startdebugging(txResult.transactionHash)
})
// ---------------- Righthand-panel -------------------- // ---------------- Righthand-panel --------------------
var rhpAPI = { var rhpAPI = {
config: config, config: config,

Loading…
Cancel
Save