File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Assets/Thirdweb/Core/Scripts Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ public async Task<NFT> Get(string tokenId)
5555 new TokenERC1155Contract . UriFunction ( ) { TokenId = BigInteger . Parse ( tokenId ) }
5656 ) ;
5757
58+ tokenURI . ReturnValue1 = tokenURI . ReturnValue1 . Contains ( "0x{id}" ) ? tokenURI . ReturnValue1 . Replace ( "0x{id}" , tokenId ) : tokenURI . ReturnValue1 ;
59+
5860 NFT nft = new NFT ( ) ;
5961 nft . owner = "" ;
6062 nft . type = "ERC1155" ;
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ public async Task<NFT> Get(string tokenId)
5555 new TokenERC721Contract . TokenURIFunction ( ) { TokenId = BigInteger . Parse ( tokenId ) }
5656 ) ;
5757
58+ tokenURI . ReturnValue1 = tokenURI . ReturnValue1 . Contains ( "0x{id}" ) ? tokenURI . ReturnValue1 . Replace ( "0x{id}" , tokenId ) : tokenURI . ReturnValue1 ;
59+
5860 NFT nft = new NFT ( ) ;
5961 nft . owner = await OwnerOf ( tokenId ) ;
6062 nft . type = "ERC721" ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public async Task<T> DownloadText<T>(string textURI)
8787 await req . SendWebRequest ( ) ;
8888 if ( req . result != UnityWebRequest . Result . Success )
8989 {
90- Debug . LogWarning ( $ "Unable to fetch text uri { textURI } data!") ;
90+ Debug . LogWarning ( $ "Unable to fetch text uri { textURI } data! { req . error } ") ;
9191 return default ( T ) ;
9292 }
9393 string json = req . downloadHandler . text ;
You can’t perform that action at this time.
0 commit comments