fix readRaw errors not throwing

This commit is contained in:
nitowa
2022-02-12 22:22:17 +01:00
parent 5d2305b4e6
commit ad9fd09f91
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xrpio", "name": "xrpio",
"version": "0.0.8", "version": "0.0.9",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitea.nitowa.xyz/npm-packages/xrpio.git" "url": "https://gitea.nitowa.xyz/npm-packages/xrpio.git"
+2 -2
View File
@@ -154,11 +154,11 @@ export const readRaw = async (api: RippleAPI, hash: string): Promise<Memo> => {
minLedgerVersion: 25235454 minLedgerVersion: 25235454
}) })
}catch(e){ }catch(e){
if(debug){ // if(debug){
console.log("READRAW ERR", e) console.log("READRAW ERR", e)
// }
throw e throw e
} }
}
if (!tx || !tx.specification || !tx.specification['memos'] || !tx.specification['memos'][0]) { if (!tx || !tx.specification || !tx.specification['memos'] || !tx.specification['memos'][0]) {
console.log(tx) console.log(tx)