aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers
diff options
context:
space:
mode:
authorHoward Braham <howrad@gmail.com>2018-09-18 11:04:10 +0800
committerHoward Braham <howrad@gmail.com>2018-10-10 06:31:25 +0800
commit222e62d7f10ffe22dd606aea9c15e1547986c4ab (patch)
tree4b3cb0d4853d9a1408dc8b28bfdf9d9abb2f2ad5 /ui/app/helpers
parentdb4569e920b01791edb2bab8f87dcfd9596b1837 (diff)
downloadtangerine-wallet-browser-222e62d7f10ffe22dd606aea9c15e1547986c4ab.tar.gz
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/helpers')
-rw-r--r--ui/app/helpers/transactions.util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/helpers/transactions.util.js b/ui/app/helpers/transactions.util.js
index f7d249e63..0eb7972d6 100644
--- a/ui/app/helpers/transactions.util.js
+++ b/ui/app/helpers/transactions.util.js
@@ -114,7 +114,7 @@ export function getLatestSubmittedTxWithNonce (transactions = [], nonce = '0x0')
export async function isSmartContractAddress (address) {
const code = await global.eth.getCode(address)
- return code && code !== '0x'
+ return code && code !== '0x' && code !== '0x0'; // Infura will return '0x', and Ganache will return '0x0'
}
export function sumHexes (...args) {