Skip to content

Commit 210032e

Browse files
committed
Fixes and republish
1 parent 9e4afd4 commit 210032e

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

packages/keepkey/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bn-onboard/keepkey",
3-
"version": "2.0.0-alpha.9",
3+
"version": "2.0.0-alpha.10",
44
"description": "KeepKey module for Onboard.js",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/keepkey/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ function keepkey(): WalletInit {
369369
addressNList,
370370
message:
371371
message.slice(0, 2) === '0x'
372-
? ethUtil.toBuffer(message).toString('utf8')
372+
? // @ts-ignore - commonjs weirdness
373+
(ethUtil.default || ethUtil)
374+
.toBuffer(message)
375+
.toString('utf8')
373376
: message
374377
})
375378

packages/ledger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bn-onboard/ledger",
3-
"version": "2.0.0-alpha.13",
3+
"version": "2.0.0-alpha.14",
44
"description": "Ledger module for Onboard.js",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/ledger/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ const getAccount = async (
6868
): Promise<Account> => {
6969
//@ts-ignore
7070
const { default: HDKey } = await import('hdkey')
71-
const { publicToAddress, toChecksumAddress } = await import('ethereumjs-util')
71+
const ethUtil = await import('ethereumjs-util')
72+
73+
// @ts-ignore - Commonjs importing weirdness
74+
const { publicToAddress, toChecksumAddress } = ethUtil.default || ethUtil
7275

7376
const hdk = new HDKey()
7477

packages/trezor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bn-onboard/trezor",
3-
"version": "2.0.0-alpha.8",
3+
"version": "2.0.0-alpha.9",
44
"description": "Trezor module for Onboard.js",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/trezor/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ const getAccount = async (
5353
): Promise<Account> => {
5454
//@ts-ignore
5555
const { default: HDKey } = await import('hdkey')
56-
const { publicToAddress, toChecksumAddress } = await import('ethereumjs-util')
56+
const ethUtil = await import('ethereumjs-util')
57+
58+
// @ts-ignore - Commonjs importing weirdness
59+
const { publicToAddress, toChecksumAddress } = ethUtil.default || ethUtil
5760

5861
const hdk = new HDKey()
5962

0 commit comments

Comments
 (0)