Skip to content

Commit

Permalink
fix: blank page on nft page due to api v2 (#910)
Browse files Browse the repository at this point in the history
Clio changed the `nft_history` command to use the property `tx_json`
instead of `tx` when specifying api version 2. This bug is happening on
devnet and testnet explorers.

Closes #895
  • Loading branch information
ckniffen authored Jan 5, 2024
1 parent 359b0b9 commit d752492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rippled/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ const formatAccountInfo = (info, serverInfoValidated) => ({
})

const formatTransaction = (tx) => {
const txn = tx.tx || tx
// `tx` is the property for some v1 arrays of transactions such as account_tx and `tx_json` is used in v2 for all
const txn = tx.tx || tx.tx_json || tx
return {
tx: {
...txn,
Expand Down

0 comments on commit d752492

Please sign in to comment.