Fix bitcore incompatible lookupDetailedTransaction in test.html
This commit is contained in:
parent
7281fb27b1
commit
b2f24e82f9
@ -182,12 +182,18 @@
|
|||||||
|
|
||||||
function lookupDetailedTransaction(hash, format, f) {
|
function lookupDetailedTransaction(hash, format, f) {
|
||||||
const method = 'getDetailedTransaction';
|
const method = 'getDetailedTransaction';
|
||||||
const params = [
|
const af = parseInt(format)
|
||||||
|
var params = [
|
||||||
hash,
|
hash,
|
||||||
{
|
|
||||||
addressFormat: parseInt(format),
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
if (af !== 0) {
|
||||||
|
params = [
|
||||||
|
hash,
|
||||||
|
{
|
||||||
|
addressFormat: af,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
}
|
||||||
return socket.send({ method, params }, f);
|
return socket.send({ method, params }, f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -437,4 +443,4 @@
|
|||||||
document.getElementById('serverAddress').value = window.location.protocol.replace("http", "ws") + "//" + window.location.host;
|
document.getElementById('serverAddress').value = window.location.protocol.replace("http", "ws") + "//" + window.location.host;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user