Skip to content

Commit

Permalink
Pull memo into txes table
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Jun 13, 2024
1 parent 69f7578 commit 075afa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func ProcessRPCBlockByHeightTXs(cfg *config.IndexConfig, db *gorm.DB, cl *client
}

processedTx.Tx.Fees = fees
processedTx.Tx.Memo = txFull.Body.Memo

currTxDbWrappers[txIdx] = processedTx
}
Expand Down Expand Up @@ -310,6 +311,7 @@ func ProcessRPCTXs(cfg *config.IndexConfig, db *gorm.DB, cl *client.ChainClient,
}

processedTx.Tx.Fees = fees
processedTx.Tx.Memo = currTx.Body.Memo

currTxDbWrappers[txIdx] = processedTx
}
Expand Down
1 change: 1 addition & 0 deletions db/models/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Tx struct {
Code uint32
BlockID uint
Block Block
Memo string
SignerAddresses []Address `gorm:"many2many:tx_signer_addresses;"`
Fees []Fee
}
Expand Down

0 comments on commit 075afa2

Please sign in to comment.