Skip to content

Commit

Permalink
fix: Error Ignore for Desterilize Json in case of unsupported metadat…
Browse files Browse the repository at this point in the history
…a parameters - for All Data features (NFT Details/Contract/Account)
  • Loading branch information
saszer committed Sep 1, 2022
1 parent dfad5be commit fe1b6fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Runtime/NFT_Details.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion Runtime/NFTs_OfAContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion Runtime/NFTs_OwnedByAnAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fe1b6fd

Please sign in to comment.