diff --git a/components/brave_wallet/browser/internal/orchard_sync_state.cc b/components/brave_wallet/browser/internal/orchard_sync_state.cc index 34a9b6f0441d..a1ab54b7a897 100644 --- a/components/brave_wallet/browser/internal/orchard_sync_state.cc +++ b/components/brave_wallet/browser/internal/orchard_sync_state.cc @@ -155,8 +155,9 @@ OrchardSyncState::UpdateSubtreeRoots( const mojom::AccountIdPtr& account_id, uint32_t start_index, const std::vector& roots) { - DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); - return storage_.UpdateSubtreeRoots(account_id, start_index, roots); + // DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); + // return storage_.UpdateSubtreeRoots(account_id, start_index, roots); + return OrchardStorage::Result::kSuccess; } void OrchardSyncState::ResetDatabase() { diff --git a/components/brave_wallet/browser/zcash/zcash_shield_sync_service.cc b/components/brave_wallet/browser/zcash/zcash_shield_sync_service.cc index 68bffc600f62..981af233ff36 100644 --- a/components/brave_wallet/browser/zcash/zcash_shield_sync_service.cc +++ b/components/brave_wallet/browser/zcash/zcash_shield_sync_service.cc @@ -181,7 +181,7 @@ void ZCashShieldSyncService::OnGetAccountMeta( return; } account_meta_ = **result; - if (account_meta_->latest_scanned_block_id.value() && + if (account_meta_->latest_scanned_block_id && (account_meta_->latest_scanned_block_id.value() < account_meta_->account_birthday)) { error_ = Error{ErrorCode::kFailedToRetrieveAccount, ""};