Skip to content

Commit

Permalink
feat: avoid duplication of active user shared wallet key during share…
Browse files Browse the repository at this point in the history
…d wallet creation
  • Loading branch information
szymonmaslowski committed Jul 15, 2024
1 parent 9c34d51 commit b78bb1d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export const SharedWallet = (): JSX.Element => {
const handleCreateWallet = async (data: CreateWalletParams) => {
const activeWalletId = cardanoWallet.source.wallet.walletId;

const coSignersKeys = data.coSigners.map(({ keys }: CoSigner) => Wallet.Crypto.Bip32PublicKeyHex(keys));
const publicKeys = [sharedKey, ...coSignersKeys];
const publicKeys = data.coSigners.map(({ keys }: CoSigner) => Wallet.Crypto.Bip32PublicKeyHex(keys));

await createInMemorySharedWallet({
name: data.name,
Expand Down

0 comments on commit b78bb1d

Please sign in to comment.