aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-24 02:52:50 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 04:05:22 +0800
commit5fbdf9cfb94836335aaaf6a6bcbb231d35b3e882 (patch)
tree4bab26cd71b120425f1de0027758b08546b56552 /packages
parent0409c9c1e5a30380745c3406666d3fc6234d76c0 (diff)
downloaddexon-0x-contracts-5fbdf9cfb94836335aaaf6a6bcbb231d35b3e882.tar.gz
dexon-0x-contracts-5fbdf9cfb94836335aaaf6a6bcbb231d35b3e882.tar.zst
dexon-0x-contracts-5fbdf9cfb94836335aaaf6a6bcbb231d35b3e882.zip
Pass whole txData to estimateGas
Diffstat (limited to 'packages')
-rw-r--r--packages/deployer/src/deployer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/deployer/src/deployer.ts b/packages/deployer/src/deployer.ts
index 021645fd1..6710bcc85 100644
--- a/packages/deployer/src/deployer.ts
+++ b/packages/deployer/src/deployer.ts
@@ -174,7 +174,7 @@ export class Deployer {
const block = await this.web3Wrapper.getBlockAsync('latest');
let gas: number;
try {
- const gasEstimate: number = await this.web3Wrapper.estimateGasAsync(data);
+ const gasEstimate: number = await this.web3Wrapper.estimateGasAsync({ data });
gas = Math.min(gasEstimate + EXTRA_GAS, block.gasLimit);
} catch (err) {
gas = block.gasLimit;