Skip to content

Commit

Permalink
Fix: changing wallet seed length (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden authored May 28, 2024
1 parent 2793096 commit 4e283f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coinbase/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class Wallet {
switch (seed) {
case undefined: {
const mnemonic = bip39.generateMnemonic();
const seedBuffer = bip39.mnemonicToSeedSync(mnemonic);
const seedBuffer = bip39.mnemonicToSeedSync(mnemonic).subarray(0, 32);
return {
seed: seedBuffer.toString("hex"),
master: HDKey.fromMasterSeed(seedBuffer),
Expand Down

0 comments on commit 4e283f4

Please sign in to comment.