-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add migration flow for old grants to new promotions #6937
Comments
Added |
Verified passed with
Scenario 1:
Scenario 2:
Scenario 3:
Verification passed on
Test Case 1 - UGP grant Verified test plan from brave/brave-core#4101 when claiming only a UGP grant on 1.0.1: Confirmed on upgrade to 1.3.x that BAT value remains the same: Also confirmed the parameters from the description showed in terminal:
Test Case 2 - Ads grant
Test Case 3 - UGP grant & ads grant
Verification is passed on
Scenario 1:
Scenario 2:
Also confirmed that once the grant is virtualized, restoring the wallet on a new profile, 0 BAT is restored (confirming 1 way conversion). Verified test plan from brave/brave-core#4101 when claiming both an ad grant and a UGP grant on 1.0.0:
Also confirmed that once the grant is virtualized, restoring the wallet on a new profile, 0 BAT is restored (confirming 1 way conversion). |
Now that we switched to new promotions we need to migrate old promotions.
What needs to happen is when in native lib we fetch promotions we need to add additional parameter to the fetch url
migrate=true
. This will fetch old promotions as well. After that we need to check parameterlegacyClaimed
and if it's true we skip attestation flow and just trigger claim process. Promotion should be automatically claimed.The text was updated successfully, but these errors were encountered: