From 7bb87e3799dd6f35880e9ff41062456497dab266 Mon Sep 17 00:00:00 2001 From: Shekhar Gaur Date: Thu, 20 Jan 2022 18:26:50 +0530 Subject: [PATCH] collectionInactive fix --- utils/asset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/asset.go b/utils/asset.go index 744285305..7ccf1f394 100644 --- a/utils/asset.go +++ b/utils/asset.go @@ -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