aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web3_wrapper.ts2
-rw-r--r--test/exchange_wrapper.ts (renamed from test/contract_wrapper_test.ts)0
2 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;
}
diff --git a/test/contract_wrapper_test.ts b/test/exchange_wrapper.ts
index 4bfc49374..4bfc49374 100644
--- a/test/contract_wrapper_test.ts
+++ b/test/exchange_wrapper.ts