Skip to content

Commit

Permalink
api: add colleciont id in tx table (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu authored Aug 29, 2022
1 parent 17dac5f commit 9d59f9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/executor/create_collection_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ func (e *CreateCollectionExecutor) GetExecutedTx() (*tx.Tx, error) {
}

e.tx.TxInfo = string(txInfoBytes)
e.tx.CollectionId = e.txInfo.CollectionId

return e.BaseExecutor.GetExecutedTx()
}

Expand Down
2 changes: 2 additions & 0 deletions core/executor/mint_nft_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ func (e *MintNftExecutor) GetExecutedTx() (*tx.Tx, error) {
}

e.tx.TxInfo = string(txInfoBytes)
e.tx.NftIndex = e.txInfo.NftIndex

return e.BaseExecutor.GetExecutedTx()
}

Expand Down
1 change: 1 addition & 0 deletions dao/tx/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type (
StateRoot string
NftIndex int64
PairIndex int64
CollectionId int64
AssetId int64
TxAmount string
NativeAddress string
Expand Down

0 comments on commit 9d59f9b

Please sign in to comment.