-
Notifications
You must be signed in to change notification settings - Fork 921
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
feat(wallet): implement ramp network support #16558
Conversation
@@ -967,12 +970,11 @@ public void onTextChanged(CharSequence s, int start, int before, int count) { | |||
setSendToFromValueValidationResult(errorMessage, false, true); | |||
}); | |||
} | |||
} else if (mActivityType == ActivityType.BUY | |||
&& mSelectedNetwork.chainId.equals(BraveWalletConstants.MAINNET_CHAIN_ID)) { | |||
} else if (mActivityType == ActivityType.BUY) { |
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.
do we support buy on all networks including test nets? maybe we should exclude test chains in that place?
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.
or it just gives an error Could not get buy URL
in that case and we are ok?
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.
Those are excluded here with allowBuy so the buy option is hidden for excluded networks.
BTW, in future, with more providers, we will have to show a message "buy not supported" based on the result of token list.
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.
Demo of excluded networks
ramp-excluded-networks.webm
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.
ok, cool!
- Remove wyre
0764b44
to
9d6ee8a
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.
++
Verification passed on Lenovo Tab with Android 12 running 1.49.36 x64 Nightly build
16558.mp4 |
Resolves brave/brave-browser#27678
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
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
android-ramp-support.webm
Additional Info