From 26db77a04e1aff4bf7dc3f27ba820e61bfe6a591 Mon Sep 17 00:00:00 2001 From: asim Date: Fri, 26 Aug 2022 08:59:27 +0100 Subject: [PATCH] . --- nft/handler/opensea.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nft/handler/opensea.go b/nft/handler/opensea.go index 513a4c95f4..7e18b036ee 100644 --- a/nft/handler/opensea.go +++ b/nft/handler/opensea.go @@ -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] }