diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-28 05:33:20 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-28 07:37:55 +0800 |
commit | e6887dc9d4b129eee062c9c2f80a970548ee7650 (patch) | |
tree | b8aab94fa30a6b9d89301b896fe85ea69ed1857c /packages/0x.js | |
parent | 082c5c375e07fc8781ca74671326e5184422d298 (diff) | |
download | dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.tar dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.tar.gz dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.tar.bz2 dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.tar.lz dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.tar.xz dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.tar.zst dexon-sol-tools-e6887dc9d4b129eee062c9c2f80a970548ee7650.zip |
Fix a comment
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/src/contract.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/contract.ts b/packages/0x.js/src/contract.ts index 7e16c580d..25a0609aa 100644 --- a/packages/0x.js/src/contract.ts +++ b/packages/0x.js/src/contract.ts @@ -61,10 +61,10 @@ export class Contract implements Web3.ContractInstance { if (this.isTxData(lastArg)) { txData = args.pop(); } - // Gas amounts priorities: - // 1 - method level - // 2 - Library defaults - // 3 - estimate + // Gas amount sourced with the following priorities: + // 1. Optional param passed it to public method call + // 2. Global config passed in at library instantiation + // 3. Gas estimate calculation + safety margin const removeUndefinedProperties = _.pickBy; txData = { ...removeUndefinedProperties(this.defaults), |