From 5876dc9dd538318a678bde579b4fe42470052da5 Mon Sep 17 00:00:00 2001 From: Ez3kiel Date: Tue, 16 Jan 2024 18:38:21 +0100 Subject: [PATCH] fix: json-rpc error handling --- lib/src/repositories/rpc_client_repository.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/repositories/rpc_client_repository.dart b/lib/src/repositories/rpc_client_repository.dart index 1605b53..b4d25b2 100644 --- a/lib/src/repositories/rpc_client_repository.dart +++ b/lib/src/repositories/rpc_client_repository.dart @@ -232,11 +232,11 @@ sealed class RpcClientRepository { } else if (json case { 'id': final int id, - // 'jsonrpc': '2.0', + 'jsonrpc': '2.0', 'error': { 'code': final int code, 'message': final String message, - 'json': final dynamic data + // 'json': final dynamic data } }) { if (_pendingRequests[id] != null) { @@ -244,7 +244,7 @@ sealed class RpcClientRepository { json_rpc_2.RpcException( code, message, - data: data, + // data: data, ), ); _pendingRequests.remove(id);