diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 15:55:52 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 15:55:52 +0800 |
commit | f4bc7ecf5f72ee32931cf4fa44fffb50505d696d (patch) | |
tree | a3efad29eebe35f6aa43109bdd956f8cc3166dfc /src | |
parent | 132b5d4f9b3bcb0d3f1a23790d54a4db173ca989 (diff) | |
parent | b21779999fbcae105b00265a4ce481388ffafcfc (diff) | |
download | dexon-sol-tools-f4bc7ecf5f72ee32931cf4fa44fffb50505d696d.tar.gz dexon-sol-tools-f4bc7ecf5f72ee32931cf4fa44fffb50505d696d.tar.zst dexon-sol-tools-f4bc7ecf5f72ee32931cf4fa44fffb50505d696d.zip |
Merge branch 'tokenRegistry' into erc20Wrapper
Diffstat (limited to 'src')
-rw-r--r-- | src/web3_wrapper.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web3_wrapper.ts b/src/web3_wrapper.ts index 3b460e4da..97d04db8c 100644 --- a/src/web3_wrapper.ts +++ b/src/web3_wrapper.ts @@ -50,7 +50,7 @@ export class Web3Wrapper { public async doesContractExistAtAddressAsync(address: string): Promise<boolean> { const code = await promisify(this.web3.eth.getCode)(address); // Regex matches 0x0, 0x00, 0x in order to accomodate poorly implemented clients - const zeroHexAddressRegex = /^0x0\{0,40\}$/i; + const zeroHexAddressRegex = /^0x0*$/i; const didFindCode = _.isNull(code.match(zeroHexAddressRegex)); return didFindCode; } |