From fe1b6fdd9b670afec8407cc443f6a92fc6ae64e9 Mon Sep 17 00:00:00 2001 From: "sz.sahaj" <43649755+saszer@users.noreply.github.com> Date: Fri, 2 Sep 2022 00:57:27 +1000 Subject: [PATCH] fix: Error Ignore for Desterilize Json in case of unsupported metadata parameters - for All Data features (NFT Details/Contract/Account) --- Runtime/NFT_Details.cs | 3 ++- Runtime/NFTs_OfAContract.cs | 3 ++- Runtime/NFTs_OwnedByAnAccount.cs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Runtime/NFT_Details.cs b/Runtime/NFT_Details.cs index 62d9525..af16f32 100644 --- a/Runtime/NFT_Details.cs +++ b/Runtime/NFT_Details.cs @@ -225,7 +225,8 @@ IEnumerator CallAPIProcess() new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, - MissingMemberHandling = MissingMemberHandling.Ignore + MissingMemberHandling = MissingMemberHandling.Ignore, + Error = (sender, error) => error.ErrorContext.Handled = true }); if(OnCompleteAction!=null) diff --git a/Runtime/NFTs_OfAContract.cs b/Runtime/NFTs_OfAContract.cs index 98074e1..8fd982b 100644 --- a/Runtime/NFTs_OfAContract.cs +++ b/Runtime/NFTs_OfAContract.cs @@ -248,7 +248,8 @@ IEnumerator CallAPIProcess() new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, - MissingMemberHandling = MissingMemberHandling.Ignore + MissingMemberHandling = MissingMemberHandling.Ignore, + Error = (sender, error) => error.ErrorContext.Handled = true }); if(OnCompleteAction!=null) diff --git a/Runtime/NFTs_OwnedByAnAccount.cs b/Runtime/NFTs_OwnedByAnAccount.cs index b0a1dc6..07c410c 100644 --- a/Runtime/NFTs_OwnedByAnAccount.cs +++ b/Runtime/NFTs_OwnedByAnAccount.cs @@ -277,7 +277,8 @@ IEnumerator CallAPIProcess() new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, - MissingMemberHandling = MissingMemberHandling.Ignore + MissingMemberHandling = MissingMemberHandling.Ignore, + Error = (sender, error) => error.ErrorContext.Handled = true }); if(OnCompleteAction!=null)