aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-11-12 10:55:46 +0800
committerJacob Evans <jacob@dekz.net>2018-11-12 10:55:46 +0800
commite0c4f58970a6ea13d1c92b16c12609d11519092d (patch)
tree0df70f04e8f24a4a2d58b3ca94777692a5c810e0 /packages/web3-wrapper
parentdf8fd36c94223d20a427d3829edfc15a4f58161b (diff)
downloaddexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.tar
dexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.tar.gz
dexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.tar.bz2
dexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.tar.lz
dexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.tar.xz
dexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.tar.zst
dexon-sol-tools-e0c4f58970a6ea13d1c92b16c12609d11519092d.zip
bug(web3-wrapper): throws when contract returns null
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r--packages/web3-wrapper/src/web3_wrapper.ts3
1 files changed, 0 insertions, 3 deletions
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;
}
/**