Change value of address

This fixes #118, a bug which completely breaks browser-solidity.
pull/1/head
Denton Liu 9 years ago
parent bc4b7e9629
commit f3a8e3d818
  1. 4
      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 = $('<span class="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 = $('<span class="title"/>').text(contract.name + ' at ' + address + ' (' + context + ')');
$title.click(function () {
$instance.toggleClass('hide');
});

Loading…
Cancel
Save