Skip to content

Commit

Permalink
Add debug info to catch Contract error on account_test
Browse files Browse the repository at this point in the history
  • Loading branch information
rukafe0x committed Dec 17, 2024
1 parent ab09d9c commit 8645392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/starknet_provider/lib/src/call_rpc_endpoint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ Future<Map<String, dynamic>> 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;
}

0 comments on commit 8645392

Please sign in to comment.