diff --git a/packages/beacon-node/package.json b/packages/beacon-node/package.json index 27ae5b1734ac..d715c1f77ed5 100644 --- a/packages/beacon-node/package.json +++ b/packages/beacon-node/package.json @@ -139,7 +139,6 @@ "interface-datastore": "^8.2.7", "it-all": "^3.0.4", "it-pipe": "^3.0.1", - "lodash": "^4.17.21", "jwt-simple": "0.5.6", "libp2p": "1.1.1", "multiformats": "^11.0.1", @@ -154,7 +153,6 @@ "devDependencies": { "@types/datastore-level": "^3.0.0", "@types/leveldown": "^4.0.3", - "@types/lodash": "^4.14.192", "@types/qs": "^6.9.7", "@types/tmp": "^0.2.3", "it-drain": "^3.0.3", diff --git a/packages/beacon-node/test/unit/eth1/utils/eth1Data.test.ts b/packages/beacon-node/test/unit/eth1/utils/eth1Data.test.ts index e5678b9f06d7..4b5bf74772b7 100644 --- a/packages/beacon-node/test/unit/eth1/utils/eth1Data.test.ts +++ b/packages/beacon-node/test/unit/eth1/utils/eth1Data.test.ts @@ -1,4 +1,3 @@ -import pick from "lodash/pick.js"; import {describe, it, expect} from "vitest"; import {Root, phase0, ssz} from "@lodestar/types"; import {toHex} from "@lodestar/utils"; @@ -107,7 +106,7 @@ describe("eth1 / util / getEth1DataForBlocks", function () { if (expectedEth1Data) { const eth1Datas = await eth1DatasPromise; - const eth1DatasPartial = eth1Datas.map((eth1Data) => pick(eth1Data, Object.keys(expectedEth1Data[0]))); + const eth1DatasPartial = eth1Datas.map(({blockNumber, depositCount}) => ({blockNumber, depositCount})); expect(eth1DatasPartial).toEqual(expectedEth1Data); } else if (error != null) { await expectRejectedWithLodestarError(eth1DatasPromise, error); diff --git a/yarn.lock b/yarn.lock index 8748b589bcc8..0f0c76c7d130 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2915,11 +2915,6 @@ "@types/abstract-leveldown" "*" "@types/node" "*" -"@types/lodash@^4.14.192": - version "4.14.202" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.202.tgz#f09dbd2fb082d507178b2f2a5c7e74bd72ff98f8" - integrity sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ== - "@types/minimatch@^3.0.3": version "3.0.5" resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz"