diff options
author | Howard Braham <howrad@gmail.com> | 2018-09-18 11:04:10 +0800 |
---|---|---|
committer | Howard Braham <howrad@gmail.com> | 2018-10-10 06:31:25 +0800 |
commit | 222e62d7f10ffe22dd606aea9c15e1547986c4ab (patch) | |
tree | 4b3cb0d4853d9a1408dc8b28bfdf9d9abb2f2ad5 /ui/app/components/send | |
parent | db4569e920b01791edb2bab8f87dcfd9596b1837 (diff) | |
download | tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar.gz tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar.bz2 tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar.lz tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar.xz tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar.zst tangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.zip |
Bug Fix: #1789 and #4525 eth.getCode() with no contract
Diffstat (limited to 'ui/app/components/send')
-rw-r--r-- | ui/app/components/send/send.utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/send/send.utils.js b/ui/app/components/send/send.utils.js index a18a9e4b3..05ba6b88f 100644 --- a/ui/app/components/send/send.utils.js +++ b/ui/app/components/send/send.utils.js @@ -215,7 +215,7 @@ async function estimateGas ({ // if recipient has no code, gas is 21k max: if (!selectedToken && !data) { const code = Boolean(to) && await global.eth.getCode(to) - if (!code || code === '0x') { + if (!code || code === '0x' || code === '0x0') { // Infura will return '0x', and Ganache will return '0x0' return SIMPLE_GAS_COST } } else if (selectedToken && !to) { |