fix: change cursor of opensea v2 ownership endpoint

This commit is contained in:
Dario Gabriel Lipicar 2023-08-18 11:15:55 -03:00 committed by dlipicar
parent ad0e2c2450
commit ae17ad57c3
1 changed files with 2 additions and 1 deletions

View File

@ -84,9 +84,10 @@ func (o *ClientV2) FetchAllAssetsByOwnerAndContractAddress(chainID walletCommon.
}
assets.PreviousCursor = cursor
assets.NextCursor = cursor
for {
assetsPage, err := o.FetchAllAssetsByOwner(chainID, owner, cursor, assetLimitV2)
assetsPage, err := o.FetchAllAssetsByOwner(chainID, owner, assets.NextCursor, assetLimitV2)
if err != nil {
return nil, err
}