fix: change cursor of opensea v2 ownership endpoint
This commit is contained in:
parent
ad0e2c2450
commit
ae17ad57c3
|
@ -84,9 +84,10 @@ func (o *ClientV2) FetchAllAssetsByOwnerAndContractAddress(chainID walletCommon.
|
||||||
}
|
}
|
||||||
|
|
||||||
assets.PreviousCursor = cursor
|
assets.PreviousCursor = cursor
|
||||||
|
assets.NextCursor = cursor
|
||||||
|
|
||||||
for {
|
for {
|
||||||
assetsPage, err := o.FetchAllAssetsByOwner(chainID, owner, cursor, assetLimitV2)
|
assetsPage, err := o.FetchAllAssetsByOwner(chainID, owner, assets.NextCursor, assetLimitV2)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue