aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-05 06:36:30 +0800
committerFabio Berger <me@fabioberger.com>2018-07-05 06:36:30 +0800
commit5204e4c08da7d32012047ee6ca4d898b0c45a47d (patch)
treedff0350fc7bda0efd374f22bec7b2c899906b255 /packages
parent1050ecdf3c9e0dbc881342b8ff377180ed1b0dad (diff)
downloaddexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar
dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar.gz
dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar.bz2
dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar.lz
dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar.xz
dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar.zst
dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.zip
Pass 'from' param to estimateGas since it is required
Diffstat (limited to 'packages')
-rw-r--r--packages/base-contract/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts
index cb9042415..6b970ec27 100644
--- a/packages/base-contract/src/index.ts
+++ b/packages/base-contract/src/index.ts
@@ -80,7 +80,7 @@ export class BaseContract {
// Awaiting https://github.com/Microsoft/TypeScript/pull/13288 to be merged
} as any;
if (_.isUndefined(txDataWithDefaults.gas) && !_.isUndefined(estimateGasAsync)) {
- txDataWithDefaults.gas = await estimateGasAsync(txData);
+ txDataWithDefaults.gas = await estimateGasAsync(txDataWithDefaults as any);
}
return txDataWithDefaults;
}