- (void)restorePurchasesButtonTapped {
[soundManager playTapSound];
persistor = [RMStore defaultStore].transactionPersistor;
[[RMStore defaultStore] restoreTransactionsOnSuccess:^{
if ([persistor isPurchasedProductOfIdentifier:@"RemoveAds"]) {
[SVProgressHUD showSuccessWithStatus:@"Purchases restored, ads removed!"];
[FXKeychain defaultKeychain][@"AdsRemoved"] = [NSNumber numberWithBool:YES];
} else {
[SVProgressHUD showErrorWithStatus:@"Looks like you don't have any previous purchases!"];
}
} failure:^(NSError *error) {
[SVProgressHUD showErrorWithStatus:@"Problem restoring purchases"];
}];
}
Edit: Sorry for not being clear with the question. The error I'm receiving is the following: "Incompatible block pointer types sending 'void'(^)(void) to parameter of type 'void(^)NSArray*__strong)'
I am not returning an Array but NSArray was mentioned in the bug. If I can give any more information please let me know, kind of new to coding and trying to fix an error from someone else's code project so I don't have a great understanding of the code