Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Aug 26, 2022
1 parent 04c7ede commit 26db77a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nft/handler/opensea.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ func (o *OpenSea) Assets(ctx context.Context, req *pb.AssetsRequest, rsp *pb.Ass
asset.Description = asset.Description[:2048]
}

if asset.Contract != nil && len(asset.Contract.Description) > 2048 {
asset.Contract.Description = asset.Contract.Description[:2048]
}

if asset.Collection != nil && len(asset.Collection.Description) > 2048 {
asset.Collection.Description = asset.Collection.Description[:2048]
}
Expand Down

0 comments on commit 26db77a

Please sign in to comment.