inavlid tx log output

This commit is contained in:
nitowa
2022-02-12 21:21:29 +01:00
parent c03899ad7a
commit 7bdacd6ebd
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -2,3 +2,4 @@ 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'
+1
View File
@@ -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]