public static JObject DecodeCalldata(this FlatClient client, ILogger logger, string encodedValue, string sophiaReturnType)
        {
            // decode the result to json
            SophiaJsonData sophiaJsonData = client.DecodeCallData(encodedValue, sophiaReturnType);

            return(sophiaJsonData.Data as JObject);
        }
        public void TestDecodeCalldata()
        {
            SophiaJsonData callData = nativeClient.DecodeCallData(TestConstants.EncodedServiceCallAnswer, "int");

            Assert.AreEqual(TestConstants.ServiceCallAnswerJSON, ((JObject)callData.Data).ToString(Formatting.None));
        }