From f3a8e3d818811dbdbe5ad3b5cb3656e4d03090f3 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Sat, 2 Jul 2016 01:10:22 -0400 Subject: [PATCH] Change value of address This fixes #118, a bug which completely breaks browser-solidity. --- src/universal-dapp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 697bae5dc7..d28fcc4d64 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -198,8 +198,8 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar } var context = self.options.vm ? 'memory' : 'blockchain'; - address = address.toString('hex'); - var $title = $('').text(contract.name + ' at ' + (address.slice(0, 2) === '0x' ? '' : '0x') + address + ' (' + context + ')'); + address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex'); + var $title = $('').text(contract.name + ' at ' + address + ' (' + context + ')'); $title.click(function () { $instance.toggleClass('hide'); });