Commit e692e020 authored by d11e9's avatar d11e9

fix atAddress output

parent 1861f769
...@@ -101,7 +101,7 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) { ...@@ -101,7 +101,7 @@ UniversalDApp.prototype.getCreateInterface = function ($container, contract) {
$createInterface.append( $close ); $createInterface.append( $close );
} }
var $newButton = this.getInstanceInterface( contract ) var $newButton = this.getInstanceInterface( contract )
var $atButton = $('<button class="atAddress"/>').text('At Address').click( function(){ self.clickContractAt( self, $container, contract ) } ); var $atButton = $('<button class="atAddress"/>').text('At Address').click( function(){ self.clickContractAt( self, $container.find('.createContract'), contract ) } );
$createInterface.append( $atButton ).append( $newButton ); $createInterface.append( $atButton ).append( $newButton );
return $createInterface; return $createInterface;
} }
...@@ -376,9 +376,9 @@ UniversalDApp.prototype.clickNewContract = function ( self, $contract, contract ...@@ -376,9 +376,9 @@ UniversalDApp.prototype.clickNewContract = function ( self, $contract, contract
$contract.append( self.getInstanceInterface(contract) ); $contract.append( self.getInstanceInterface(contract) );
} }
UniversalDApp.prototype.clickContractAt = function ( self, $contract, contract ) { UniversalDApp.prototype.clickContractAt = function ( self, $output, contract ) {
var address = prompt( "What Address is this contract at in the Blockchain? ie: '0xdeadbeaf...'" ) var address = prompt( "What Address is this contract at in the Blockchain? ie: '0xdeadbeaf...'" )
self.getInstanceInterface(contract, address, $contract ); self.getInstanceInterface(contract, address, $output );
} }
UniversalDApp.prototype.runTx = function( data, args, cb) { UniversalDApp.prototype.runTx = function( data, args, cb) {
......
...@@ -352,6 +352,7 @@ THE SOFTWARE. ...@@ -352,6 +352,7 @@ THE SOFTWARE.
editor.focus(); editor.focus();
} }
$('#input').toggle( !!SOL_CACHE_FILE ); $('#input').toggle( !!SOL_CACHE_FILE );
$('#output').toggle( !!SOL_CACHE_FILE );
} }
function fileTabTemplate(key) { function fileTabTemplate(key) {
......
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