瀏覽代碼

fix readRaw errors not throwing

master
nitowa 2 年之前
父節點
當前提交
ad9fd09f91
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. 1
    1
      package.json
  2. 3
    3
      src/xrpIO/ripple-binding.ts

+ 1
- 1
package.json 查看文件

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "xrpio",
3
-  "version": "0.0.8",
3
+  "version": "0.0.9",
4 4
   "repository": {
5 5
     "type": "git",
6 6
     "url": "https://gitea.nitowa.xyz/npm-packages/xrpio.git"

+ 3
- 3
src/xrpIO/ripple-binding.ts 查看文件

@@ -154,10 +154,10 @@ export const readRaw = async (api: RippleAPI, hash: string): Promise<Memo> => {
154 154
       minLedgerVersion: 25235454
155 155
     })
156 156
   }catch(e){
157
-    if(debug){
157
+//    if(debug){
158 158
       console.log("READRAW ERR", e)
159
-      throw e
160
-    }
159
+//    }
160
+    throw e
161 161
   }
162 162
 
163 163
   if (!tx || !tx.specification || !tx.specification['memos'] || !tx.specification['memos'][0]) {

Loading…
取消
儲存