Skip to content

Commit

Permalink
Make makeRPCCall public #5 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyinkin authored Aug 14, 2023
1 parent ee292ea commit 382c21a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/core/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class Web3Client {
///Whether errors, handled or not, should be printed to the console.
bool printErrors = false;

Future<T> makeRPCCall<T>(String function, [List<dynamic>? params]) async {
return await _makeRPCCall(function, params);
}

// TODO: Remove
@Deprecated('Use the public makeRPCCall')
Future<T> _makeRPCCall<T>(String function, [List<dynamic>? params]) async {
try {
final data = await _jsonRpc.call(function, params);
Expand Down

0 comments on commit 382c21a

Please sign in to comment.