Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
revert mnemonic serialization format
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Jan 17, 2023
1 parent 1941def commit 015a163
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ class HdKeyring {
}

serialize() {
const mnemonicAsString = this._stringToUint8Array(this.mnemonic);
const mnemonicAsBuffer = Buffer.from(mnemonicAsString, 'utf8');

return Promise.resolve({
mnemonic: this._mnemonicToUint8Array(this.mnemonic),
mnemonic: Array.from(mnemonicAsBuffer.values()),
numberOfAccounts: this._wallets.length,
hdPath: this.hdPath,
});
Expand Down

0 comments on commit 015a163

Please sign in to comment.