pull/541/head
sidhujag 2020-09-07 14:00:20 -07:00
parent 65efc8400c
commit 30e5a3c398
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ func (d *RocksDB) GetTxAssets(assetGuid uint32, lower uint32, higher uint32, ass
txids := []string{}
for _, txIndex := range txIndexes {
mask := uint32(txIndex.Type)
if (assetsBitMask == bchain.AllMask || uint32(assetsBitMask) & mask) == mask {
if (assetsBitMask == bchain.AllMask) || ((uint32(assetsBitMask) & mask) == mask) {
txids = append(txids, hex.EncodeToString(txIndex.BtxID))
}
}