Skip to content

Commit

Permalink
chore: bump @ethereumjs/util version to 9.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LiYanLance committed May 23, 2024
1 parent 749eacd commit 6bc2ce6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/ur-registry-eth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keystonehq/bc-ur-registry-eth",
"version": "0.19.1",
"version": "0.20.0",
"description": "bc-ur-registry extension for ETH",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -25,7 +25,7 @@
"author": "soralit <[email protected]>",
"license": "ISC",
"dependencies": {
"@ethereumjs/util": "^8.0.0",
"@ethereumjs/util": "^9.0.3",
"@keystonehq/bc-ur-registry": "^0.6.0",
"hdkey": "^2.0.1",
"uuid": "^8.3.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/ur-registry-eth/src/utlis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const generateAddressFromXpub = (xpub: string, derivePath: string) => {
const node = HDKey.fromExtendedKey(xpub);
const publicKey = node.derive(derivePath);
const address =
"0x" + publicToAddress(publicKey.publicKey, true).toString("hex");
"0x" + Buffer.from(publicToAddress(publicKey.publicKey, true)).toString("hex");
return toChecksumAddress(address);
};

Expand Down
18 changes: 16 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bc2ce6

Please sign in to comment.