This repository was archived by the owner on Oct 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +63
-411
lines changed
Expand file tree Collapse file tree 3 files changed +63
-411
lines changed Original file line number Diff line number Diff line change 4848 "@metamask/utils" : " ^8.1.0"
4949 },
5050 "devDependencies" : {
51+ "@ethereumjs/wallet" : " ^2.0.0" ,
5152 "@lavamoat/allow-scripts" : " ^2.3.1" ,
5253 "@lavamoat/preinstall-always-fail" : " ^1.0.0" ,
5354 "@metamask/auto-changelog" : " ^3.0.0" ,
6768 "eslint-plugin-jsdoc" : " ^40.0.3" ,
6869 "eslint-plugin-node" : " ^11.1.0" ,
6970 "eslint-plugin-prettier" : " ^4.2.1" ,
70- "ethereumjs-wallet" : " ^1.0.2" ,
7171 "jest" : " ^29.0.0" ,
7272 "jest-it-up" : " ^2.0.2" ,
7373 "prettier" : " ^2.8.1" ,
9090 "lavamoat" : {
9191 "allowScripts" : {
9292 "@lavamoat/preinstall-always-fail" : false ,
93- "eth-sig-util>ethereumjs-util>keccak" : false ,
94- "eth-sig-util>ethereumjs-util>secp256k1" : false ,
95- "ethereumjs-wallet>ethereum-cryptography>keccak" : false ,
96- "ethereumjs-wallet>ethereum-cryptography>secp256k1" : false ,
9793 "@metamask/eth-hd-keyring>eth-simple-keyring>eth-sig-util>ethereumjs-util>keccak" : false ,
9894 "@metamask/eth-hd-keyring>eth-simple-keyring>eth-sig-util>ethereumjs-util>secp256k1" : false
9995 }
Original file line number Diff line number Diff line change 1+ import { Wallet } from '@ethereumjs/wallet' ;
12import HdKeyring from '@metamask/eth-hd-keyring' ;
23import { normalize as normalizeAddress } from '@metamask/eth-sig-util' ;
34import type { Hex } from '@metamask/utils' ;
45import { strict as assert } from 'assert' ;
5- import Wallet from 'ethereumjs-wallet' ;
66import * as sinon from 'sinon' ;
77
88import { KeyringController , keyringBuilderFactory } from '.' ;
@@ -860,7 +860,7 @@ describe('KeyringController', () => {
860860 ) ;
861861
862862 const wallet = Wallet . fromPrivateKey ( Buffer . from ( privateAppKey , 'hex' ) ) ;
863- const recoveredAddress = `0x${ wallet . getAddress ( ) . toString ( 'hex' ) } ` ;
863+ const recoveredAddress = `0x${ wallet . getAddress ( ) . toString ( ) } ` ;
864864
865865 expect ( recoveredAddress ) . toBe ( appKeyAddress ) ;
866866 expect ( privateAppKey ) . not . toBe ( privateKey ) ;
You can’t perform that action at this time.
0 commit comments