From 37de38becb25d3d66782ed9d6c94dd0722089ea8 Mon Sep 17 00:00:00 2001 From: d11e9 Date: Wed, 14 Oct 2015 10:31:39 +0100 Subject: [PATCH] bugfix: incorrect sender. fixes #48 --- assets/js/universal-dapp.js | 1 + index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/universal-dapp.js b/assets/js/universal-dapp.js index 7755a12015..e8fdcab6f4 100644 --- a/assets/js/universal-dapp.js +++ b/assets/js/universal-dapp.js @@ -382,6 +382,7 @@ UniversalDApp.prototype.clickContractAt = function ( self, $output, contract ) { } UniversalDApp.prototype.runTx = function( data, args, cb) { + var self = this; var to = args.address; var constant = args.abi.constant; var isConstructor = args.bytecode !== undefined; diff --git a/index.html b/index.html index 4df3486e83..e4596afd1c 100644 --- a/index.html +++ b/index.html @@ -700,7 +700,7 @@ var dapp = new UniversalDApp(udappContracts, { vm: executionContext === 'vm', removable: false, - getAddress: function(){ return $('txorigin').val(); }, + getAddress: function(){ return $('#txorigin').val(); }, removable_instances: true, renderOutputModifier: function(contractName, $contractOutput) { var contract = data.contracts[contractName];