Skip to content

Commit

Permalink
Merge pull request #11913 from brave/pr11903_skip_validation_flag_1.34.x
Browse files Browse the repository at this point in the history
Add skipValidation flag for GetPriceQuote call (uplift to 1.34.x)
  • Loading branch information
kjozwiak committed Jan 20, 2022
2 parents 52e046b + 5bb1e02 commit e156f1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/brave_wallet/browser/swap_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ GURL SwapController::GetPriceQuoteURL(mojom::SwapParamsPtr swap_params,
: base_url_for_test_.spec().c_str());
GURL url(spec);
url = AppendSwapParams(url, *swap_params, chain_id);
// That flag prevents an allowance validation on a swap exchange proxy side.
// We do in clients allowance validation.
url = net::AppendQueryParameter(url, "skipValidation", "true");

return url;
}

Expand Down

0 comments on commit e156f1a

Please sign in to comment.