From d7524923affa87fe9812c2b8189fddee07653367 Mon Sep 17 00:00:00 2001 From: Caleb Kniffen Date: Fri, 5 Jan 2024 17:35:44 -0600 Subject: [PATCH] fix: blank page on nft page due to api v2 (#910) 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 --- src/rippled/lib/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rippled/lib/utils.js b/src/rippled/lib/utils.js index bf82f478f..cc04bf4da 100644 --- a/src/rippled/lib/utils.js +++ b/src/rippled/lib/utils.js @@ -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,