Skip to content

Commit

Permalink
Fix entities/transaction, logs and transfer events
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorizzo committed Jan 14, 2021
1 parent a2b110b commit f2e398a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/entities/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f2e398a

Please sign in to comment.