From f2e398a40c6ac1c1415d24626ffb35de8c8992c8 Mon Sep 17 00:00:00 2001 From: emi Date: Thu, 14 Jan 2021 11:36:03 -0700 Subject: [PATCH] Fix entities/transaction, logs and transfer events --- src/config/entities/transaction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/entities/transaction.js b/src/config/entities/transaction.js index 578278de..a2c4cfe0 100644 --- a/src/config/entities/transaction.js +++ b/src/config/entities/transaction.js @@ -266,7 +266,7 @@ export const TxLogs = () => { export const TxLogItem = () => { return { name: 'tx-log-item', - formatRow: formatEvent, + formatRow: ({ data, parentData }) => formatEvent(data, parentData), fields: { logIndex: { default: 0 @@ -307,8 +307,8 @@ export const TxLogItem = () => { export const TxTransferEvents = () => { const te = TxLogs() - te.formatRow = (tx) => { - tx = TxLogFormatter(tx) + te.formatRow = ({ data }) => { + const tx = TxLogFormatter(data) let logs = (tx.receipt && tx.receipt.logs) ? tx.receipt.logs : [] logs = filterTransferEvents(logs) tx._transferEvents = logs