Update btcOperator.js

This commit is contained in:
tripathyr 2023-09-30 13:53:04 +05:30 committed by GitHub
parent 19441ef04e
commit bf3a47594f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1044,7 +1044,7 @@
}).catch(error => reject(error))
});
getTx.hex = btcOperator.geTx.hex = txid => new Promise((resolve, reject) => {
getTx.hex = btcOperator.getTx.hex = txid => new Promise((resolve, reject) => {
fetch_api(`rawtx/${txid}?format=hex`, false)
.then(result => resolve(result))
.catch(error => reject(error))