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

Commit

Permalink
Fix #2536, Fix #2527: Update Brave Rewards lib to include ads payout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson committed May 11, 2020
1 parent 32820ce commit 6217045
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
Binary file modified BraveRewards/BraveRewards.framework/BraveRewards
Binary file not shown.
3 changes: 2 additions & 1 deletion BraveRewards/BraveRewards.framework/Headers/BATBraveLedger.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ NS_SWIFT_NAME(BraveLedger)

- (void)fetchPromotions:(nullable void (^)(NSArray<BATPromotion *> *grants))completion;

- (void)claimPromotion:(NSString *)deviceCheckPublicKey
- (void)claimPromotion:(NSString *)promotionId
publicKey:(NSString *)deviceCheckPublicKey
completion:(void (^)(BATResult result, NSString * _Nonnull nonce))completion;

- (void)attestPromotion:(NSString *)promotionId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ typedef NS_ENUM(NSInteger, BATResult) {
BATResultAcTableEmpty = 14,
BATResultNotEnoughFunds = 15,
BATResultTipError = 16,
BATResultCorruptedWallet = 17,
BATResultCorruptedData = 17,
BATResultGrantAlreadyClaimed = 18,
BATResultContributionAmountTooLow = 19,
BATResultVerifiedPublisher = 20,
Expand All @@ -90,6 +90,7 @@ typedef NS_ENUM(NSInteger, BATResult) {
BATResultRetryShort = 30,
BATResultRetryLong = 31,
BATResultContinue = 32,
BATResultInProgress = 33,
} NS_SWIFT_NAME(Result);


Expand Down Expand Up @@ -180,6 +181,7 @@ typedef NS_ENUM(NSInteger, BATPromotionStatus) {
BATPromotionStatusAttested = 1,
BATPromotionStatusFinished = 4,
BATPromotionStatusOver = 5,
BATPromotionStatusCorrupted = 6,
} NS_SWIFT_NAME(PromotionStatus);


Expand Down Expand Up @@ -211,6 +213,7 @@ typedef NS_ENUM(NSInteger, BATCredsBatchStatus) {
BATCredsBatchStatusClaimed = 2,
BATCredsBatchStatusSigned = 3,
BATCredsBatchStatusFinished = 4,
BATCredsBatchStatusCorrupted = 5,
} NS_SWIFT_NAME(CredsBatchStatus);


Expand Down
2 changes: 1 addition & 1 deletion BraveRewardsUI/Extensions/BraveLedgerExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ extension BraveLedger {
completion(false)
return
}
self.claimPromotion(attestation.publicKeyHash) { result, nonce in
self.claimPromotion(promotion.id, publicKey: attestation.publicKeyHash) { result, nonce in
if result != .ledgerOk {
completion(false)
return
Expand Down
2 changes: 1 addition & 1 deletion BraveRewardsUI/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ The latest BraveRewards.framework was built on:

```
brave-browser/fa8c9a4f483e847b931496e4275db6c0aa38c0ae
brave-core/bfd2c3f3230cb3232915ea6b9cc2e510b04bfd75
brave-core/75c765d0e7b5703d3d10429f94d0ee293794ff7b
```

0 comments on commit 6217045

Please sign in to comment.