Skip to content

Commit

Permalink
deps: bump @metamask/utils to 5.0.1 (#1211)
Browse files Browse the repository at this point in the history
Update "@metamask/utils" to version "^5.0.1"

This updates the version of "@metamask/utils" to version "^5.0.1" in all relevant package.json files and the yarn.lock file.

* dedupe dependencies
* fix: fall back to 0x0 for undefined input in hexToBN
* update lavamoat policy

---------

Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
  • Loading branch information
legobeat and Mrtenz authored Apr 19, 2023
1 parent c8c9f38 commit eca9f25
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 314 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
"web3-provider-engine>@ethereumjs/tx>ethereumjs-util>ethereum-cryptography>keccak": false,
"web3-provider-engine>@ethereumjs/tx>ethereumjs-util>ethereum-cryptography>secp256k1": false,
"web3-provider-engine>ethereumjs-util>keccak": false,
"web3-provider-engine>ethereumjs-util>secp256k1": false
"web3-provider-engine>ethereumjs-util>secp256k1": false,
"web3-provider-engine>ethereumjs-util>ethereum-cryptography>keccak": false,
"web3-provider-engine>ethereumjs-util>ethereum-cryptography>secp256k1": false
}
}
}
2 changes: 1 addition & 1 deletion packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@metamask/metamask-eth-abis": "3.0.0",
"@metamask/network-controller": "workspace:^",
"@metamask/preferences-controller": "workspace:^",
"@metamask/utils": "^3.3.1",
"@metamask/utils": "^5.0.1",
"@types/uuid": "^8.3.0",
"abort-controller": "^3.0.0",
"async-mutex": "^0.2.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/controller-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/utils": "^3.3.1",
"@metamask/utils": "^5.0.1",
"@spruceid/siwe-parser": "1.1.3",
"eth-ens-namehash": "^2.0.8",
"eth-rpc-errors": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/controller-utils/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function getBuyURL(
* @returns A BN instance.
*/
export function hexToBN(inputHex: string) {
return new BN(stripHexPrefix(inputHex), 16);
return inputHex ? new BN(stripHexPrefix(inputHex), 16) : new BN(0);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/network-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@metamask/base-controller": "workspace:^",
"@metamask/controller-utils": "workspace:^",
"@metamask/swappable-obj-proxy": "^2.1.0",
"@metamask/utils": "^3.3.1",
"@metamask/utils": "^5.0.1",
"async-mutex": "^0.2.6",
"babel-runtime": "^6.26.0",
"eth-json-rpc-infura": "^5.1.0",
Expand Down
Loading

0 comments on commit eca9f25

Please sign in to comment.