inavlid tx log output
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
export * from './xrpIO/ripple-binding'
|
export * from './xrpIO/ripple-binding'
|
||||||
export * from './util/types'
|
export * from './util/types'
|
||||||
export * from './util/protocol.constants'
|
export * from './util/protocol.constants'
|
||||||
export * from 'ripple-lib'
|
export * from 'ripple-lib'
|
||||||
|
export { RippleAPI } from 'ripple-lib'
|
||||||
@@ -162,6 +162,7 @@ export const readRaw = async (api: RippleAPI, hash: string): Promise<Memo> => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
throw new Error('Invalid Transaction ' + hash)
|
throw new Error('Invalid Transaction ' + hash)
|
||||||
}
|
}
|
||||||
return tx.specification['memos'][0]
|
return tx.specification['memos'][0]
|
||||||
|
|||||||
Reference in New Issue
Block a user