Merge pull request #1246 from 0xProject/bug/web3-wrapper/eth-call-null

[web3-wrapper] Throws when contract returns null
This commit is contained in:
Fabio B
2018-11-12 10:42:28 +01:00
committed by GitHub

View File

@@ -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;
}
/**