diff --git a/src/coinbase/wallet.ts b/src/coinbase/wallet.ts index 6804e903..2499580a 100644 --- a/src/coinbase/wallet.ts +++ b/src/coinbase/wallet.ts @@ -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),