diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-05 06:36:30 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-05 06:36:30 +0800 |
commit | 5204e4c08da7d32012047ee6ca4d898b0c45a47d (patch) | |
tree | dff0350fc7bda0efd374f22bec7b2c899906b255 /packages | |
parent | 1050ecdf3c9e0dbc881342b8ff377180ed1b0dad (diff) | |
download | dexon-sol-tools-5204e4c08da7d32012047ee6ca4d898b0c45a47d.tar.gz 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.ts | 2 |
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; } |