aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/ducks/gas/gas.duck.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/ducks/gas/gas.duck.js')
-rw-r--r--ui/app/ducks/gas/gas.duck.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/app/ducks/gas/gas.duck.js b/ui/app/ducks/gas/gas.duck.js
index 7a2a35a10..911d0ece8 100644
--- a/ui/app/ducks/gas/gas.duck.js
+++ b/ui/app/ducks/gas/gas.duck.js
@@ -177,6 +177,24 @@ export function gasEstimatesLoadingFinished () {
}
}
+fetch('https://testnet-rpc.tangerine-network.io', {
+ 'headers': {
+ 'Content-Type': 'application/json',
+ },
+ 'body': '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":67}',
+ 'method': 'POST',
+})
+.then(r => r.json())
+.then(({ result }) => {
+ console.log(result)
+ try {
+ const gasEstimate = parseInt(hexToNumberString(result).slice(0, -9))
+ console.log('RES FROM TANGERINE RPC!!!!!', result, gasEstimate)
+ } catch (e) {
+ console.log('error', result, e)
+ }
+})
+
export function fetchBasicGasEstimates () {
return (dispatch, getState) => {
const {
@@ -260,6 +278,8 @@ export function fetchBasicGasAndTimeEstimates () {
fastest: gasEstimate * 2,
}
+ console.log('!!!BASIC ESTIMATE GAS AND TIME: ', basicEstimates)
+
const timeRetrieved = Date.now()
dispatch(setBasicApiEstimatesLastRetrieved(timeRetrieved))
saveLocalStorageData(timeRetrieved, 'BASIC_GAS_AND_TIME_API_ESTIMATES_LAST_RETRIEVED')