From ae61eeb64ec6b216bd2192196e3c7a48917c12c3 Mon Sep 17 00:00:00 2001 From: Michele Esposito Date: Tue, 1 Aug 2023 15:01:14 +0200 Subject: [PATCH] fix: mnemonic conversion --- app/scripts/metamask-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 7c694d19b239..fa120200fc2a 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -2984,7 +2984,7 @@ export default class MetamaskController extends EventEmitter { .toString() .split(' ') .map((word) => wordlist.indexOf(word)); - return new Uint8Array(indices); + return new Uint8Array(new Uint16Array(indices).buffer); } /**