Revert "Use the private RPC client for requests to Status backend when not coming from Dapps"
This reverts commit 2136fe62ce
.
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
parent
f06f4d7a46
commit
03243e4916
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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]]);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue