diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-29 01:44:10 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-29 01:44:10 +0800 |
commit | 36b21e6e7b8033117c9a1313c1294682184462f8 (patch) | |
tree | 71add18ce6347de87698b04915bec3c7de900e14 /packages/0x.js/src/contract.ts | |
parent | 977a6b279467c944223f3484bd0f07078706472c (diff) | |
download | dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.tar dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.tar.gz dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.tar.bz2 dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.tar.lz dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.tar.xz dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.tar.zst dexon-sol-tools-36b21e6e7b8033117c9a1313c1294682184462f8.zip |
Add fake gas estimate suprovider for tests
Diffstat (limited to 'packages/0x.js/src/contract.ts')
-rw-r--r-- | packages/0x.js/src/contract.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/contract.ts b/packages/0x.js/src/contract.ts index 25a0609aa..0cd3a315f 100644 --- a/packages/0x.js/src/contract.ts +++ b/packages/0x.js/src/contract.ts @@ -58,7 +58,7 @@ export class Contract implements Web3.ContractInstance { const promise = new Promise(async (resolve, reject) => { const lastArg = args[args.length - 1]; let txData: Partial<Web3.TxData> = {}; - if (this.isTxData(lastArg)) { + if (!_.isUndefined(lastArg) && this.isTxData(lastArg)) { txData = args.pop(); } // Gas amount sourced with the following priorities: |