public void TestRpcApplicationLog() { JObject json = TestUtils.RpcTestCases.Find(p => p.Name == nameof(RpcClient.GetApplicationLogAsync).ToLower()).Response.Result; var item = RpcApplicationLog.FromJson(json); Assert.AreEqual(json.ToString(), item.ToJson().ToString()); }
/// <summary> /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory. /// This method is provided by the plugin ApplicationLogs. /// </summary> public async Task <RpcApplicationLog> GetApplicationLogAsync(string txHash, TriggerType triggerType) { var result = await RpcSendAsync(GetRpcName(), txHash, triggerType).ConfigureAwait(false); return(RpcApplicationLog.FromJson(result, protocolSettings)); }
/// <summary> /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory. /// This method is provided by the plugin ApplicationLogs. /// </summary> public async Task <RpcApplicationLog> GetApplicationLogAsync(string txHash) { var result = await RpcSendAsync(GetRpcName(), txHash).ConfigureAwait(false); return(RpcApplicationLog.FromJson(result)); }
/// <summary> /// Returns the contract log based on the specified txHash. The complete contract logs are stored under the ApplicationLogs directory. /// This method is provided by the plugin ApplicationLogs. /// </summary> public RpcApplicationLog GetApplicationLog(string txHash) { return(RpcApplicationLog.FromJson(RpcSend("getapplicationlog", txHash))); }