mirror of
https://github.com/OutCast3k/coinbin.git
synced 2025-02-08 16:17:32 +01:00
bugfix for blockcypher when address used that has no UTXO
This commit is contained in:
parent
efc16c10fb
commit
1f3b878d63
@ -1086,7 +1086,7 @@ $(document).ready(function() {
|
|||||||
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpected error, unable to retrieve unspent outputs!');
|
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpected error, unable to retrieve unspent outputs!');
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if(data.txrefs) {
|
if (data.address) { // address field will always be present, txrefs is only present if there are UTXOs
|
||||||
$("#redeemFromAddress").removeClass('hidden').html(
|
$("#redeemFromAddress").removeClass('hidden').html(
|
||||||
'<span class="glyphicon glyphicon-info-sign"></span> Retrieved unspent inputs from address <a href="'+explorer_addr+redeem.addr+'" target="_blank">'+redeem.addr+'</a>');
|
'<span class="glyphicon glyphicon-info-sign"></span> Retrieved unspent inputs from address <a href="'+explorer_addr+redeem.addr+'" target="_blank">'+redeem.addr+'</a>');
|
||||||
for(var i in data.txrefs){
|
for(var i in data.txrefs){
|
||||||
|
Loading…
Reference in New Issue
Block a user