mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
requestTransactionEntry arguments
This commit is contained in:
@@ -785,13 +785,14 @@ Remote.prototype.requestTransactionEntry = function(hash, ledger_hash, callback)
|
|||||||
request.ledgerIndex(ledger_hash);
|
request.ledgerIndex(ledger_hash);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'undefined':
|
||||||
case 'function':
|
case 'function':
|
||||||
request.callback(ledger_hash);
|
request.ledgerIndex('validated');
|
||||||
|
callback = ledger_hash;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
request.ledgerIndex('validated');
|
throw new Error('Invalid ledger_hash type');
|
||||||
callback = ledger_hash;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
request.callback(callback);
|
request.callback(callback);
|
||||||
|
|||||||
Reference in New Issue
Block a user