Skip to content

Commit 07b5aab

Browse files
authored
FIX - Coinbase SDK build - Updates to fix build (#2219)
* Updates to fix build * Type cleanup
1 parent 5b2b95f commit 07b5aab

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

packages/coinbase/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
},
6161
"dependencies": {
6262
"@coinbase/wallet-sdk": "4.0.3",
63-
"@web3-onboard/common": "^2.4.0"
63+
"@web3-onboard/common": "^2.4.1-alpha.1"
6464
}
6565
}

packages/coinbase/src/index.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
createEIP1193Provider,
3-
fromHex,
4-
type WalletInit,
5-
type WalletInterface
6-
} from '@web3-onboard/common'
1+
import type { WalletInit, WalletInterface } from '@web3-onboard/common'
72

83
function coinbaseWallet({
94
supportedWalletType = 'all',
@@ -46,7 +41,9 @@ function coinbaseWallet({
4641
? (CoinbaseWalletSDK as any).default
4742
: CoinbaseWalletSDK
4843
) as typeof CoinbaseWalletSDK
49-
const { isHex, toHex } = await import('@web3-onboard/common')
44+
const { isHex, toHex, createEIP1193Provider, fromHex } = await import(
45+
'@web3-onboard/common'
46+
)
5047

5148
const base64 = window.btoa(icon || '')
5249
const appLogoUrl = `data:image/svg+xml;base64,${base64}`

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/common",
3-
"version": "2.4.0",
3+
"version": "2.4.1-alpha.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/demo/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
const onboard = Onboard({
262262
wallets: [
263263
// metamaskSDKWallet,
264-
// coinbaseWallet,
264+
coinbaseWallet,
265265
injected,
266266
ledger,
267267
trezor,

packages/enkrypt/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
},
5757
"license": "MIT",
5858
"devDependencies": {
59-
"@ethersproject/providers": "^5.5.0",
6059
"@types/node": "^17.0.21",
6160
"ts-node": "^10.2.1",
6261
"typescript": "^5.4.5",

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5737,6 +5737,14 @@
57375737
"@walletconnect/window-getters" "^1.0.1"
57385738
tslib "1.14.1"
57395739

5740+
"@web3-onboard/common@2.4.0", "@web3-onboard/common@^2.4.0":
5741+
version "2.4.0"
5742+
resolved "https://registry.yarnpkg.com/@web3-onboard/common/-/common-2.4.0.tgz#dcc61ef095bd09eb3ba47a9752d6fb75ba53fd9b"
5743+
integrity sha512-WS+/+giBbBFTnIUcphGWIas+KZJ+JjYNNPVj/N3EUrrc0nSbmtFkD3hqvz8f1GH2C0p547FEdIwahZL3+MtROw==
5744+
dependencies:
5745+
joi "17.9.1"
5746+
viem "2.12.0"
5747+
57405748
"@web3-react/abstract-connector@^6.0.7":
57415749
version "6.0.7"
57425750
resolved "https://registry.yarnpkg.com/@web3-react/abstract-connector/-/abstract-connector-6.0.7.tgz#401b3c045f1e0fab04256311be49d5144e9badc6"

0 commit comments

Comments
 (0)