Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 4ac9c75

Browse files
committed
Enforce a specific value for intentOnFilling
Addresses review comment #162 (comment)
1 parent 757d70d commit 4ac9c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/swap_handlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const parseGetSwapQuoteRequestParams = (req: express.Request): GetSwapQuoteReque
170170
: parseStringArrForERC20BridgeSources(req.query.excludedSources.split(','));
171171
const affiliateAddress = req.query.affiliateAddress;
172172
// tslint:disable-next-line:boolean-naming
173-
const intentOnFilling = req.query.intentOnFilling === undefined ? false : true;
173+
const intentOnFilling = req.query.intentOnFilling === 'true' ? true : false;
174174
return {
175175
takerAddress,
176176
sellToken,

0 commit comments

Comments
 (0)