From 8645392c1a0f618099987f0f03a66752dbcf767f Mon Sep 17 00:00:00 2001 From: rukafe0x Date: Tue, 17 Dec 2024 12:09:32 -0300 Subject: [PATCH] Add debug info to catch Contract error on account_test --- packages/starknet_provider/lib/src/call_rpc_endpoint.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/starknet_provider/lib/src/call_rpc_endpoint.dart b/packages/starknet_provider/lib/src/call_rpc_endpoint.dart index 2dbf160d..4ce7fd66 100644 --- a/packages/starknet_provider/lib/src/call_rpc_endpoint.dart +++ b/packages/starknet_provider/lib/src/call_rpc_endpoint.dart @@ -17,10 +17,14 @@ Future> callRpcEndpoint( // 2023-07-13: Disabling symbol sorting is required for Declare V2 final filteredBody = PythonicJsonEncoder(sortSymbol: false).convert(body); + print('filteredBody: *************'); + print('filteredBody: $filteredBody'); final response = await http.post(nodeUri, headers: headers, body: filteredBody); final jsonResponse = json.decode(response.body); + print('jsonResponse: *************'); + print('jsonResponse: $jsonResponse'); return jsonResponse; }