From 18aaa890a316c49012f6185dd45cbdf457f0737e Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Wed, 6 Jun 2018 08:44:52 +0200 Subject: [PATCH] Rollback part of 2136fe62ce5505e14fb0eeabaf6a0c925156309c Signed-off-by: Pedro Pombeiro --- .../src/main/java/im/status/ethereum/module/JSCJail.java | 4 ++-- modules/react-native-status/ios/RCTStatus/Jail.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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]; }