-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use xrpl.js types and simplify tx parsers #776
Conversation
060df10
to
0f3f90b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do tests need to be updated?
No because this just updated types and parsers. Since only the output displayed the the user was changed no tests should need to be updated. |
src/containers/shared/components/Transaction/EscrowCancel/Description.tsx
Show resolved
Hide resolved
src/containers/shared/components/Transaction/EscrowCreate/Description.tsx
Show resolved
Hide resolved
) => { | ||
const { t, i18n } = useTranslation() | ||
const language = i18n.resolvedLanguage | ||
const { data } = props | ||
const deleted: any = findNode(data, 'DeletedNode', 'Escrow') | ||
const deleted: any = findNode(data.meta, 'DeletedNode', 'Escrow') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
src/containers/shared/components/Transaction/EscrowFinish/parser.ts
Outdated
Show resolved
Hide resolved
src/containers/shared/components/Transaction/PaymentChannelClaim/parser.ts
Show resolved
Hide resolved
@@ -18,7 +18,7 @@ export const Description = ({ | |||
tx.CancelAfter && | |||
localizeDate(convertRippleDate(tx.CancelAfter), language, DATE_OPTIONS) | |||
|
|||
const node = findNode(data, 'CreatedNode', 'PayChannel') | |||
const node = findNode(data.meta, 'CreatedNode', 'PayChannel') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this happen in the parser?
Co-authored-by: Mayukha Vadari <[email protected]>
High Level Overview of Change
Memos
andMetadata
.defaultParser
.parser
is now an option property of aTransactionMapping
.Type of Change
Future updates
Use more types from xrpl.js once they are exported and fixed.