Skip to content

Commit

Permalink
remove keyShareService from this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Sep 23, 2024
1 parent 83c59de commit b2bc89b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 deletions.
19 changes: 0 additions & 19 deletions src/background/services/keyShare.ts

This file was deleted.

15 changes: 3 additions & 12 deletions src/background/services/openPayments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { getExchangeRates, getRateOfPay, toAmount } from '../utils';
import { exportJWK, generateEd25519KeyPair } from '@/shared/crypto';
import { bytesToHex } from '@noble/hashes/utils';
import { getWalletInformation } from '@/shared/helpers';
import { KeyShareService } from './keyShare';
import { AddFundsPayload, ConnectWalletPayload } from '@/shared/messages';
import {
DEFAULT_RATE_OF_PAY,
Expand Down Expand Up @@ -505,17 +504,9 @@ export class OpenPaymentsService {
return grantDetails;
}

private async addPublicKeyToWallet(walletAddress: WalletAddress) {
const keyShare = new KeyShareService({
browser: this.browser,
storage: this.storage,
});
try {
await keyShare.addPublicKeyToWallet(walletAddress);
} catch (err) {
// TODO: add error with code to be used for logic in UI
throw new Error(`ADD_PUBLIC_KEY_TO_WALLET:${err.message}`);
}
private async addPublicKeyToWallet(_walletAddress: WalletAddress) {
const msg = `Automatic key addition is not not implemented for give wallet provider yet`;
throw new Error(`ADD_PUBLIC_KEY_TO_WALLET:${msg}`);
}

private async redirectToWelcomeScreen(
Expand Down

0 comments on commit b2bc89b

Please sign in to comment.