diff --git a/modules/react-native-status/android/build.gradle b/modules/react-native-status/android/build.gradle index 444c35f747..b213bc103c 100644 --- a/modules/react-native-status/android/build.gradle +++ b/modules/react-native-status/android/build.gradle @@ -16,7 +16,7 @@ dependencies { implementation 'com.instabug.library:instabug:3+' implementation 'status-im:function:0.0.1' - String statusGoVersion = 'develop-g03bf6e37' + String statusGoVersion = 'develop-ga6d69eba' final String statusGoGroup = 'status-im', statusGoName = 'status-go' // Check if the local status-go jar exists, and compile against that if it does diff --git a/modules/react-native-status/ios/RCTStatus/pom.xml b/modules/react-native-status/ios/RCTStatus/pom.xml index 03629fb677..4592d71280 100644 --- a/modules/react-native-status/ios/RCTStatus/pom.xml +++ b/modules/react-native-status/ios/RCTStatus/pom.xml @@ -25,7 +25,7 @@ status-im status-go-ios-simulator - develop-g03bf6e37 + develop-ga6d69eba zip true ./ diff --git a/src/status_im/protocol/handlers.cljs b/src/status_im/protocol/handlers.cljs index e59ea45a8d..39edbf3441 100644 --- a/src/status_im/protocol/handlers.cljs +++ b/src/status_im/protocol/handlers.cljs @@ -17,7 +17,7 @@ (re-frame/reg-cofx ::get-web3 (fn [coeffects _] - (let [web3 (web3-provider/make-web3) + (let [web3 (web3-provider/make-internal-web3) address (get-in coeffects [:db :account/account :address])] (set! (.-defaultAccount (.-eth web3)) (ethereum/normalized-address address)) diff --git a/src/status_im/utils/web3_provider.cljs b/src/status_im/utils/web3_provider.cljs index 6116b90a6d..d4ccfb7694 100644 --- a/src/status_im/utils/web3_provider.cljs +++ b/src/status_im/utils/web3_provider.cljs @@ -3,10 +3,13 @@ [status-im.native-module.core :as status] [status-im.js-dependencies :as dependencies])) -(defn make-web3 [] +;; This Web3 object will allow access to private RPC calls +;; It should be only used for internal application needs and never provided to any +;; 3rd parties (DApps, etc) +(defn make-internal-web3 [] (dependencies/Web3. #js {:sendAsync (fn [payload callback] - (status/call-web3 + (status/call-web3-private (.stringify js/JSON payload) (fn [response] (if (= "" response)