Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Commit

Permalink
feat(sdk): fix register bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joeandrews committed Feb 1, 2020
1 parent 8dea0a5 commit 5206668
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/extension/src/ui/apis/auth/linkAccountToMetaMask.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import secp256k1 from '@aztec/secp256k1';
import decodePrivateKey from '~/background/utils/decodePrivateKey';
import AuthService from '~/background/services/AuthService';
import ConnectionService from '~/ui/services/ConnectionService';

export default async function linkAccountToMetaMask({
address,
linkedPublicKey,
keyStore,
pwDerivedKey,
}) {
const keyStore = await AuthService.getKeyStore();
const {
pwDerivedKey,
} = await AuthService.getSession(address) || {};
const privateKey = '0x'.concat(decodePrivateKey(keyStore, pwDerivedKey));
const {
address: aliasAddress,
Expand Down

0 comments on commit 5206668

Please sign in to comment.