Skip to content

Commit

Permalink
set chainid to block model
Browse files Browse the repository at this point in the history
  • Loading branch information
jonzhang708 committed Feb 26, 2024
1 parent ddb5262 commit cd875f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions devents/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ func (tc *TxResultHandler) BuildBalance(e *TxResult) (txns []*model.BalanceTxn,
func (tc *TxResultHandler) BuildTx(e *TxResult) *model.Transaction {
return &model.Transaction{
Chain: e.MD.Chain,
ChainId: e.Tx.ChainID.Int64(),
Protocol: e.MD.Protocol,
BlockHeight: e.Tx.BlockNumber.Uint64(),
PositionInBlock: e.Tx.TxIndex.Uint64(),
Expand Down

0 comments on commit cd875f9

Please sign in to comment.