Commit f3a8e3d8 authored by Denton Liu's avatar Denton Liu

Change value of address

This fixes #118, a bug which completely breaks browser-solidity.
parent bc4b7e96
...@@ -198,8 +198,8 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar ...@@ -198,8 +198,8 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
} }
var context = self.options.vm ? 'memory' : 'blockchain'; var context = self.options.vm ? 'memory' : 'blockchain';
address = address.toString('hex'); address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex');
var $title = $('<span class="title"/>').text(contract.name + ' at ' + (address.slice(0, 2) === '0x' ? '' : '0x') + address + ' (' + context + ')'); var $title = $('<span class="title"/>').text(contract.name + ' at ' + address + ' (' + context + ')');
$title.click(function () { $title.click(function () {
$instance.toggleClass('hide'); $instance.toggleClass('hide');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment