Open sahinMT opened 1 year ago
The exception below is thrown when reading a script result message with getJsonCadence() method. FlowScriptResponse string value returns a readable json but getJsonCadence() method cannot be converted to any object.
com.fasterxml.jackson.databind.exc.MismatchedInputException: Unknown CadenceType kind: Restriction
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.nftco.flow.sdk.cadence.ArrayField["value"]->java.lang.Object[][0]->com.nftco.flow.sdk.cadence.StructField["value"]->com.nftco.flow.sdk.cadence.CompositeValue["fields"]->java.lang.Object[][2]->com.nftco.flow.sdk.cadence.CompositeAttribute["value"]->com.nftco.flow.sdk.cadence.TypeField["value"]->com.nftco.flow.sdk.cadence.TypeValue["staticType"]->com.nftco.flow.sdk.cadence.CompositeType["fields"]->java.lang.Object[][1]->com.nftco.flow.sdk.cadence.FieldType["type"]->com.nftco.flow.sdk.cadence.DictionaryType["value"]->com.nftco.flow.sdk.cadence.CompositeType["fields"]->java.lang.Object[][1]->com.nftco.flow.sdk.cadence.FieldType["type"]->com.nftco.flow.sdk.cadence.CompositeType["fields"]->java.lang.Object[][6]->com.nftco.flow.sdk.cadence.FieldType["type"]->com.nftco.flow.sdk.cadence.VariableSizedArrayType["type"]->com.nftco.flow.sdk.cadence.CompositeType["fields"]->java.lang.Object[][0]->com.nftco.flow.sdk.cadence.FieldType["type"]->com.nftco.flow.sdk.cadence.CapabilityType["type"]->com.nftco.flow.sdk.cadence.ReferenceType["type"])
SDK Version:
com.nftco:flow-jvm-sdk:0.7.3
This bug has been fixed in the Flow fork of this repo, https://github.com/onflow/flow-jvm-sdk. The bug fix is included as of v 1.0.1
The exception below is thrown when reading a script result message with getJsonCadence() method. FlowScriptResponse string value returns a readable json but getJsonCadence() method cannot be converted to any object.
com.fasterxml.jackson.databind.exc.MismatchedInputException: Unknown CadenceType kind: Restriction
SDK Version:
com.nftco:flow-jvm-sdk:0.7.3