Skip to content

Commit cec4c59

Browse files
authored
Merge pull request #502 from shekhar2807/collectionInactive
Staker cannot commit when one collection is inactive fix
2 parents d0efb9e + 7bb87e3 commit cec4c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/asset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func GetActiveAssetsData(client *ethclient.Client, epoch uint32) ([]*big.Int, er
214214
activeCollection, err := GetActiveCollection(client, uint16(assetIndex))
215215
if err != nil {
216216
log.Error(err)
217-
if err == errors.New("collection inactive") {
217+
if err.Error() == errors.New("collection inactive").Error() {
218218
continue
219219
}
220220
return nil, err

0 commit comments

Comments
 (0)