diff --git a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/JSCJail.java b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/JSCJail.java index e1405c95f6..7ef02953d7 100644 --- a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/JSCJail.java +++ b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/JSCJail.java @@ -95,7 +95,7 @@ class JSCJail implements Jail { JSFunction web3send = new JSFunction(context, "web3send") { public String web3send(String payload) { - return Statusgo.CallPrivateRPC(payload); + return Statusgo.CallRPC(payload); } }; context.property("web3send", web3send); @@ -105,7 +105,7 @@ class JSCJail implements Jail { Runnable r = new Runnable() { @Override public void run() { - String result = Statusgo.CallPrivateRPC(payload); + String result = Statusgo.CallRPC(payload); callback.toFunction().call(null, result); } }; diff --git a/modules/react-native-status/ios/RCTStatus/Jail.m b/modules/react-native-status/ios/RCTStatus/Jail.m index 0cc1744304..8edd34d3b7 100644 --- a/modules/react-native-status/ios/RCTStatus/Jail.m +++ b/modules/react-native-status/ios/RCTStatus/Jail.m @@ -13,7 +13,7 @@ - (NSString *)send:(JSValue *)payload { - char * result = CallPrivateRPC((char *) [[payload toString] UTF8String]); + char * result = CallRPC((char *) [[payload toString] UTF8String]); return [NSString stringWithUTF8String: result]; }