Skip to content

Commit

Permalink
fix(transaction-update): replace ethereumjs-util with @ethereumjs/util (
Browse files Browse the repository at this point in the history
#720)

Co-authored-by: António Regadas <apregadas@gmail.com>
  • Loading branch information
legobeat and zone-live authored May 17, 2024
1 parent 59ab8b6 commit 136bb72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To install, for example, react as a dependency into all packages, you can use th
If you want to install react as a dependency only to a particular package, execute the following command:

`$ lerna add react --scope my-package`
`$ npx lerna add ethereumjs-util --scope=@metamask-institutional/custody-keyring`
`$ npx lerna add @ethereumjs/util --scope=@metamask-institutional/custody-keyring`

If you have installed, react for every package but would like to upgrade/downgrade to a particular version only for a specific package, then you can do it like this:

Expand Down
4 changes: 2 additions & 2 deletions packages/transactionUpdate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
},
"gitHead": "",
"dependencies": {
"@ethereumjs/util": "^8.0.5",
"@metamask-institutional/custody-keyring": "^1.1.1",
"@metamask-institutional/sdk": "^0.1.27",
"@metamask-institutional/types": "^1.1.0",
"@metamask-institutional/websocket-client": "^0.2.1",
"@metamask/obs-store": "^8.0.0",
"ethereumjs-util": "^7.1.5"
"@metamask/obs-store": "^8.0.0"
},
"devDependencies": {
"ts-jest": "26.4.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/transactionUpdate/src/TransactionUpdate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { toChecksumAddress } from "@ethereumjs/util";
import { CustodyKeyring, MMIConfiguration, MmiConfigurationController } from "@metamask-institutional/custody-keyring";
import { mapTransactionStatus } from "@metamask-institutional/sdk";
import {
Expand All @@ -10,7 +11,6 @@ import {
} from "@metamask-institutional/types";
import { WebsocketClientController } from "@metamask-institutional/websocket-client";
import { ObservableStore } from "@metamask/obs-store";
import { toChecksumAddress } from "ethereumjs-util";
import { EventEmitter } from "events";

import { POLL_TRANSACTION_RETRIES, TRANSACTION_POLLING_INTERVAL } from "./constants";
Expand Down

0 comments on commit 136bb72

Please sign in to comment.