diff options
author | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-03 14:12:31 +0800 |
---|---|---|
committer | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-03 14:12:31 +0800 |
commit | 9063fba5314a18e057125efcaaac2441e7d13a74 (patch) | |
tree | d8758b40eea4ea8bd35aaa2e7255621fffdd702b /ui/app/ducks/gas/gas.duck.js | |
parent | dd139452d053496d79816c881dbb59ee4aded81b (diff) | |
download | tangerine-wallet-browser-9063fba5314a18e057125efcaaac2441e7d13a74.tar.gz tangerine-wallet-browser-9063fba5314a18e057125efcaaac2441e7d13a74.tar.zst tangerine-wallet-browser-9063fba5314a18e057125efcaaac2441e7d13a74.zip |
Revert "part of replacing 'ETH'"
This reverts commit dd139452d053496d79816c881dbb59ee4aded81b.
Diffstat (limited to 'ui/app/ducks/gas/gas.duck.js')
-rw-r--r-- | ui/app/ducks/gas/gas.duck.js | 20 |
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') |