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'); });