diff options
author | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-03 14:27:02 +0800 |
---|---|---|
committer | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-03 14:27:02 +0800 |
commit | 20e9132dcdc6910302dde7378ba6e6ce28603519 (patch) | |
tree | cc656550c779bae973b88f67b4cc6690d8f009c7 /ui/app/ducks/gas/gas.duck.js | |
parent | 9063fba5314a18e057125efcaaac2441e7d13a74 (diff) | |
download | tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.gz tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.bz2 tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.lz tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.xz tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.tar.zst tangerine-wallet-browser-20e9132dcdc6910302dde7378ba6e6ce28603519.zip |
it seems safer to have workaround in UI layer instead of changing the constants or logic
Diffstat (limited to 'ui/app/ducks/gas/gas.duck.js')
-rw-r--r-- | ui/app/ducks/gas/gas.duck.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ui/app/ducks/gas/gas.duck.js b/ui/app/ducks/gas/gas.duck.js index 911d0ece8..bcb9a8450 100644 --- a/ui/app/ducks/gas/gas.duck.js +++ b/ui/app/ducks/gas/gas.duck.js @@ -177,24 +177,6 @@ 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 { |