small changes

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

@ -32,7 +32,7 @@
"webworkify": "^1.2.1", "webworkify": "^1.2.1",
"yo-yo": "^1.2.2", "yo-yo": "^1.2.2",
"yo-yoify": "^3.3.0", "yo-yoify": "^3.3.0",
"ethereum-remix": "0.0.2-alpha.0.0.3" "ethereum-remix": "0.0.2-alpha.0.0.4"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

@ -1,8 +1,8 @@
var Remix = require('ethereum-remix'); var remix = require('ethereum-remix');
function Debugger (_executionContext, _id) { function Debugger (_executionContext, _id) {
this.el = document.querySelector(_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.el.appendChild(this.debugger.render());
this.web3 = _executionContext.web3(); this.web3 = _executionContext.web3();

@ -503,6 +503,7 @@ UniversalDApp.prototype.getCallButton = function (args) {
replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error')); replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error'));
} else if (isConstructor) { } else if (isConstructor) {
replaceOutput($result, getGasUsedOutput(result, result.vm)); replaceOutput($result, getGasUsedOutput(result, result.vm));
$result.append(getDebugTransaction(result));
args.appendFunctions(self.options.vm ? result.createdAddress : result.contractAddress); args.appendFunctions(self.options.vm ? result.createdAddress : result.contractAddress);
} else if (self.options.vm) { } else if (self.options.vm) {
var outputObj = '0x' + result.vm.return.toString('hex'); var outputObj = '0x' + result.vm.return.toString('hex');

Loading…
Cancel
Save