aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-28 05:33:20 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-28 07:37:55 +0800
commite6887dc9d4b129eee062c9c2f80a970548ee7650 (patch)
treeb8aab94fa30a6b9d89301b896fe85ea69ed1857c
parent082c5c375e07fc8781ca74671326e5184422d298 (diff)
downloaddexon-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
-rw-r--r--packages/0x.js/src/contract.ts8
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),