Skip to content

Commit

Permalink
bug: BREAKING : changed token_id paramater in NFTDetails from int to …
Browse files Browse the repository at this point in the history
…string to handle long token ids easily.
  • Loading branch information
saszer committed Sep 18, 2022
1 parent dbe7dc7 commit 81868b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Runtime/NFT_Details.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public enum Chains
[SerializeField]
[DrawIf("chain", Chains.solana , DrawIfAttribute.DisablingType.DontDrawInverse)]
[Tooltip("Token ID of the NFT")]
private int _token_id = 0;
private string _token_id = "0";

[DrawIf("chain", Chains.solana , DrawIfAttribute.DisablingType.DontDraw)]
[SerializeField]
Expand Down Expand Up @@ -109,14 +109,14 @@ public static NFT_Details Initialize(bool destroyAtEnd = true)
/// <summary>
/// Set Parameters to retrieve NFT From. ≧◔◡◔≦ .
/// </summary>
/// <param name="contract_address"> as string - EVM</param>
/// <param name="collection"> as string - EVM</param>
/// <param name="token_id"> as int - EVM.</param>
/// <param name="mint_address"> mint_address - Solana.</param>
/// <param name="refresh_metadata"> Queues and refreshes the metadata of the token if it has changed since the updated_date. Useful for example, when NFT collections are revealed or upgraded</param>
public NFT_Details SetParameters(string contract_address = null, int token_id = -1, string mint_address = null, bool refresh_metadata = false)
public NFT_Details SetParameters(string collection = null, string token_id = "0", string mint_address = null, bool refresh_metadata = false)
{
if(contract_address!=null)
this._contract_address = contract_address;
if(collection!=null)
this._contract_address = collection;
if (token_id != -1)
_token_id = token_id;
if (mint_address != null)
Expand Down

0 comments on commit 81868b3

Please sign in to comment.