Commit 65965486 authored by Denton Liu's avatar Denton Liu

Fix #113

parent b1e4e018
...@@ -197,7 +197,9 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar ...@@ -197,7 +197,9 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
$instance.append($close); $instance.append($close);
} }
var context = self.options.vm ? 'memory' : 'blockchain'; var context = self.options.vm ? 'memory' : 'blockchain';
var $title = $('<span class="title"/>').text(contract.name + ' at ' + (self.options.vm ? '0x' : '') + address.toString('hex') + ' (' + context + ')');
address = address.toString('hex');
var $title = $('<span class="title"/>').text(contract.name + ' at ' + (address.slice(0, 2) === '0x' ? '' : '0x') + 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