From 382c21aa25dc3901ef04f5f0fa5b615595478cd9 Mon Sep 17 00:00:00 2001 From: alexeyinkin Date: Mon, 14 Aug 2023 23:01:20 +0400 Subject: [PATCH] Make makeRPCCall public #5 (#11) --- lib/src/core/client.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/core/client.dart b/lib/src/core/client.dart index 8705c16b..0ec5d9db 100644 --- a/lib/src/core/client.dart +++ b/lib/src/core/client.dart @@ -48,6 +48,12 @@ class Web3Client { ///Whether errors, handled or not, should be printed to the console. bool printErrors = false; + Future makeRPCCall(String function, [List? params]) async { + return await _makeRPCCall(function, params); + } + + // TODO: Remove + @Deprecated('Use the public makeRPCCall') Future _makeRPCCall(String function, [List? params]) async { try { final data = await _jsonRpc.call(function, params);