-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #17901 - Claim endpoint for gemini needs a deposit address #9544
Conversation
160faa4
to
a4be47a
Compare
using PostRecipientIdCallback = | ||
std::function<void(const type::Result result, | ||
const std::string recipient_id, | ||
const std::string token)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the caller supplies token
, does the caller need to receive it in the callback as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
base::JSONWriter::Write(payload, &json); | ||
|
||
std::string base64; | ||
base::Base64Encode(base::StringPiece(json), &base64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think std::string
will implicitly convert to StringPiece
; if so, the explicit StringPiece
constructor call isn't necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
|
||
using PostRecipientIdCallback = | ||
std::function<void(const type::Result result, | ||
const std::string recipient_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parameter should be const std::string&
for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
a4be47a
to
9a72932
Compare
|
||
post_recipient_id_->Request( | ||
"4c2b665ca060d912fec5c735c734859a06118cc8", | ||
[](const type::Result result, const std::string recipient_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixing
9a72932
to
7333f52
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
7333f52
to
1ed801e
Compare
1ed801e
to
99457b5
Compare
99457b5
to
a6c47c8
Compare
Resolves brave/brave-browser#17091
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: