small changes

pull/1/head
yann300 9 years ago
parent 3dd99aaac6
commit 063b5dfc2a
  1. 2
      package.json
  2. 4
      src/app/debugger.js
  3. 3
      src/universal-dapp.js

@ -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",

@ -1,8 +1,8 @@
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');

Loading…
Cancel
Save