From 03243e491603483f206e6f77b7c0c2211bdc726e Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Wed, 6 Jun 2018 15:19:15 +0200 Subject: [PATCH] Revert "Use the private RPC client for requests to Status backend when not coming from Dapps" This reverts commit 2136fe62ce5505e14fb0eeabaf6a0c925156309c. Signed-off-by: Pedro Pombeiro --- .../src/main/java/im/status/ethereum/module/StatusModule.java | 2 +- modules/react-native-status/ios/RCTStatus/RCTStatus.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java index 766f46866e..93df40fc9d 100644 --- a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java +++ b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java @@ -703,7 +703,7 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL Runnable r = new Runnable() { @Override public void run() { - String res = Statusgo.CallPrivateRPC(payload); + String res = Statusgo.CallRPC(payload); callback.invoke(res); } }; diff --git a/modules/react-native-status/ios/RCTStatus/RCTStatus.m b/modules/react-native-status/ios/RCTStatus/RCTStatus.m index 48ba921eb1..2e5129770c 100644 --- a/modules/react-native-status/ios/RCTStatus/RCTStatus.m +++ b/modules/react-native-status/ios/RCTStatus/RCTStatus.m @@ -375,7 +375,7 @@ RCT_EXPORT_METHOD(clearStorageAPIs) { RCT_EXPORT_METHOD(sendWeb3Request:(NSString *)payload callback:(RCTResponseSenderBlock)callback) { dispatch_async( dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - char * result = CallPrivateRPC((char *) [payload UTF8String]); + char * result = CallRPC((char *) [payload UTF8String]); dispatch_async( dispatch_get_main_queue(), ^{ callback(@[[NSString stringWithUTF8String: result]]); });