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

Commit

Permalink
Don't enforce presence of taker address
Browse files Browse the repository at this point in the history
Just pass the API key through to the maker.

Addresses review comment #162 (comment)
  • Loading branch information
feuGeneA committed Apr 10, 2020
1 parent 4ebfb8b commit 685e489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/swap_handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class SwapHandlers {
gasPrice,
excludedSources,
affiliateAddress,
apiKey: takerAddress && takerAddress !== NULL_ADDRESS ? req.header('0x-api-key') : undefined,
apiKey: req.header('0x-api-key'),
intentOnFilling,
});
res.status(HttpStatus.OK).send(swapQuote);
Expand Down

0 comments on commit 685e489

Please sign in to comment.