Skip to content

Commit

Permalink
collectionInactive fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhar2807 committed Jan 20, 2022
1 parent 3dd1e7d commit 7bb87e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func GetActiveAssetsData(client *ethclient.Client, epoch uint32) ([]*big.Int, er
activeCollection, err := GetActiveCollection(client, uint16(assetIndex))
if err != nil {
log.Error(err)
if err == errors.New("collection inactive") {
if err.Error() == errors.New("collection inactive").Error() {
continue
}
return nil, err
Expand Down

0 comments on commit 7bb87e3

Please sign in to comment.