From e0c4f58970a6ea13d1c92b16c12609d11519092d Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Mon, 12 Nov 2018 13:55:46 +1100 Subject: bug(web3-wrapper): throws when contract returns null --- packages/web3-wrapper/src/web3_wrapper.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'packages/web3-wrapper/src/web3_wrapper.ts') diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index 56877fef3..23204e616 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -533,9 +533,6 @@ export class Web3Wrapper { method: 'eth_call', params: [callDataHex, marshalledDefaultBlock], }); - if (rawCallResult === '0x') { - throw new Error('Contract call failed (returned null)'); - } return rawCallResult; } /** -- cgit v1.2.3