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

Commit 2dd557e

Browse files
committed
devDeps: ethereumjs-wallet@^1.0.2 -> @ethereumjs/wallet@^2.0.0
1 parent 63e7a16 commit 2dd557e

File tree

3 files changed

+63
-411
lines changed

3 files changed

+63
-411
lines changed

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
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",
@@ -67,7 +68,6 @@
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",
@@ -90,10 +90,6 @@
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
}

src/KeyringController.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { Wallet } from '@ethereumjs/wallet';
12
import HdKeyring from '@metamask/eth-hd-keyring';
23
import { normalize as normalizeAddress } from '@metamask/eth-sig-util';
34
import type { Hex } from '@metamask/utils';
45
import { strict as assert } from 'assert';
5-
import Wallet from 'ethereumjs-wallet';
66
import * as sinon from 'sinon';
77

88
import { 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);

0 commit comments

Comments
 (0)