Commit 063b5dfc authored by yann300's avatar yann300

small changes

parent 3dd99aaa
......@@ -32,7 +32,7 @@
"webworkify": "^1.2.1",
"yo-yo": "^1.2.2",
"yo-yoify": "^3.3.0",
"ethereum-remix": "0.0.2-alpha.0.0.3"
"ethereum-remix": "0.0.2-alpha.0.0.4"
},
"repository": {
"type": "git",
......
var Remix = require('ethereum-remix');
var remix = require('ethereum-remix');
function Debugger (_executionContext, _id) {
this.el = document.querySelector(_id);
this.debugger = new Remix.Debugger(_executionContext.web3());
this.debugger = new remix.Debugger(_executionContext.web3());
this.el.appendChild(this.debugger.render());
this.web3 = _executionContext.web3();
......
......@@ -354,7 +354,7 @@ UniversalDApp.prototype.getCallButton = function (args) {
var getDebugTransaction = function (result) {
var $debugTx = $('<div class="debugTx">');
var $button = $('<button class="debug" >Debug Transaction</button>');
var $button = $('<button class="debug">Debug Transaction</button>');
$button.click(function () {
self.transactionDebugger.debug(result);
});
......@@ -503,6 +503,7 @@ UniversalDApp.prototype.getCallButton = function (args) {
replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error'));
} else if (isConstructor) {
replaceOutput($result, getGasUsedOutput(result, result.vm));
$result.append(getDebugTransaction(result));
args.appendFunctions(self.options.vm ? result.createdAddress : result.contractAddress);
} else if (self.options.vm) {
var outputObj = '0x' + result.vm.return.toString('hex');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment