diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-10-10 09:15:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 09:15:33 +0800 |
commit | afb34da72978b5272cfb5a235498e483c72556bc (patch) | |
tree | fce86678fa990f238aa54860c5470ebd75cf4a53 /packages/asset-buyer/src/asset_buyer.ts | |
parent | 402089db4e1776c826119ed3555c05f61c198953 (diff) | |
parent | 8155d311af04339c105f1a29b74f1ddbced85197 (diff) | |
download | dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.tar dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.tar.gz dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.tar.bz2 dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.tar.lz dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.tar.xz dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.tar.zst dexon-sol-tools-afb34da72978b5272cfb5a235498e483c72556bc.zip |
Merge pull request #1116 from 0xProject/feature/asset-buyer/api-tweaks
[asset-buyer] Fix order expiration calc bug and expose gas options to executeBuyQuote
Diffstat (limited to 'packages/asset-buyer/src/asset_buyer.ts')
-rw-r--r-- | packages/asset-buyer/src/asset_buyer.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts index 7ec39e012..50343efde 100644 --- a/packages/asset-buyer/src/asset_buyer.ts +++ b/packages/asset-buyer/src/asset_buyer.ts @@ -183,7 +183,7 @@ export class AssetBuyer { buyQuote: BuyQuote, options: Partial<BuyQuoteExecutionOpts> = {}, ): Promise<string> { - const { ethAmount, takerAddress, feeRecipient } = { + const { ethAmount, takerAddress, feeRecipient, gasLimit, gasPrice } = { ...constants.DEFAULT_BUY_QUOTE_EXECUTION_OPTS, ...options, }; @@ -219,6 +219,10 @@ export class AssetBuyer { feeOrders, feePercentage, feeRecipient, + { + gasLimit, + gasPrice, + }, ); return txHash; } |