diff --git a/package.json b/package.json index 4e1d81a7a2..4338770e50 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@chakra-ui/react": "^2.8.0", "@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/wallet-sdk@3.7.2", "@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/wallet-sdk@3.9.3", - "@coinbase/wallet-sdk-4.0.2": "npm:@coinbase/wallet-sdk@4.0.2", + "@coinbase/wallet-sdk-4.0.3": "npm:@coinbase/wallet-sdk@4.0.3", "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", "@metamask/eth-sig-util": "^7.0.0", diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 44ca641f36..e9663fe26b 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -65,7 +65,7 @@ export function Layout({ children }: LayoutProps) { ))} - {sdkVersion === '4.0.2' && ( + {sdkVersion === '4.0.3' && ( <> }> diff --git a/src/context/CBWSDKReactContextProvider.tsx b/src/context/CBWSDKReactContextProvider.tsx index 1ec71df6d4..8f01d0a8e1 100644 --- a/src/context/CBWSDKReactContextProvider.tsx +++ b/src/context/CBWSDKReactContextProvider.tsx @@ -1,6 +1,6 @@ import { CoinbaseWalletSDK as CoinbaseWalletSDK372 } from '@coinbase/wallet-sdk-3.7.2'; import { CoinbaseWalletSDK as CoinbaseWalletSDK393 } from '@coinbase/wallet-sdk-3.9.3'; -import { CoinbaseWalletSDK as CoinbaseWalletSDK402 } from '@coinbase/wallet-sdk-4.0.2'; +import { CoinbaseWalletSDK as CoinbaseWalletSDK403 } from '@coinbase/wallet-sdk-4.0.3'; import React, { useEffect, useMemo } from 'react'; type CBWSDKProviderProps = { @@ -10,7 +10,7 @@ type CBWSDKProviderProps = { const CBWSDKReactContext = React.createContext(null); const SELECTED_SDK_KEY = 'selected_sdk_version'; -export const sdkVersions = ['4.0.2', '3.9.3', '3.7.2'] as const; +export const sdkVersions = ['4.0.3', '3.9.3', '3.7.2'] as const; export type SDKVersionType = (typeof sdkVersions)[number]; const SELECTED_SCW_URL_KEY = 'scw_url'; @@ -73,8 +73,8 @@ export function CBWSDKReactContextProvider({ children }: CBWSDKProviderProps) { useEffect(() => { let cbwsdk; let preference; - if (version === '4.0.2') { - cbwsdk = new CoinbaseWalletSDK402({ + if (version === '4.0.3') { + cbwsdk = new CoinbaseWalletSDK403({ appName: 'SDK Playground', appChainIds: [84532, 8452], }); @@ -99,7 +99,7 @@ export function CBWSDKReactContextProvider({ children }: CBWSDKProviderProps) { }, [version, option]); useEffect(() => { - if (version === '4.0.2') { + if (version === '4.0.3') { if (scwUrl) window.setPopupUrl?.(scwUrl); } }, [version, scwUrl, sdk]); diff --git a/yarn.lock b/yarn.lock index 90176e4d61..6b2b12253c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1539,9 +1539,9 @@ __metadata: languageName: node linkType: hard -"@coinbase/wallet-sdk-4.0.2@npm:@coinbase/wallet-sdk@4.0.2": - version: 4.0.2 - resolution: "@coinbase/wallet-sdk@npm:4.0.2" +"@coinbase/wallet-sdk-4.0.3@npm:@coinbase/wallet-sdk@4.0.3": + version: 4.0.3 + resolution: "@coinbase/wallet-sdk@npm:4.0.3" dependencies: buffer: ^6.0.3 clsx: ^1.2.1 @@ -1549,7 +1549,7 @@ __metadata: keccak: ^3.0.3 preact: ^10.16.0 sha.js: ^2.4.11 - checksum: d0cb646ae8a57142f0abc9a46ae449c732aec6347fc217547854ebb872668716b9494c5232dc564eeab2e26c9b24df3cfd536b7ee3027a39d5e9e89a6d05ea9c + checksum: 47c2818b57f13b1fa403a5e79fc3e039a8cfc4daf9e92910aec4fe32caa4f2326d13c7ff26bbe1921cdcae29acfe41fbf5f0d3c9d58ab39035f05b1737bc06ab languageName: node linkType: hard @@ -1561,7 +1561,7 @@ __metadata: "@chakra-ui/react": ^2.8.0 "@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/wallet-sdk@3.7.2" "@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/wallet-sdk@3.9.3" - "@coinbase/wallet-sdk-4.0.2": "npm:@coinbase/wallet-sdk@4.0.2" + "@coinbase/wallet-sdk-4.0.3": "npm:@coinbase/wallet-sdk@4.0.3" "@emotion/react": ^11.11.1 "@emotion/styled": ^11.11.0 "@metamask/eth-sig-util": ^7.0.0