浏览代码

inavlid tx log output

master
nitowa 3 年前
父节点
当前提交
7bdacd6ebd
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
    1
      src/index.ts
  2. 1
    0
      src/xrpIO/ripple-binding.ts

+ 2
- 1
src/index.ts 查看文件

1
 export * from './xrpIO/ripple-binding'
1
 export * from './xrpIO/ripple-binding'
2
 export * from './util/types'
2
 export * from './util/types'
3
 export * from './util/protocol.constants'
3
 export * from './util/protocol.constants'
4
-export * from 'ripple-lib'
4
+export * from 'ripple-lib'
5
+export { RippleAPI } from 'ripple-lib'

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

162
   }
162
   }
163
 
163
 
164
   if (!tx || !tx.specification || !tx.specification['memos'] || !tx.specification['memos'][0]) {
164
   if (!tx || !tx.specification || !tx.specification['memos'] || !tx.specification['memos'][0]) {
165
+    console.log(tx)
165
     throw new Error('Invalid Transaction ' + hash)
166
     throw new Error('Invalid Transaction ' + hash)
166
   }
167
   }
167
   return tx.specification['memos'][0]
168
   return tx.specification['memos'][0]

正在加载...
取消
保存