Skip to content

Commit

Permalink
bump playground to 4.0.4 (#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-dureja authored Jun 26, 2024
1 parent 5a0b1d1 commit f60e33a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@chakra-ui/react": "^2.8.0",
"@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/[email protected]",
"@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/[email protected]",
"@coinbase/wallet-sdk-4.0.3": "npm:@coinbase/[email protected].3",
"@coinbase/wallet-sdk-4.0.4": "npm:@coinbase/[email protected].4",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@metamask/eth-sig-util": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function Layout({ children }: LayoutProps) {
))}
</MenuList>
</Menu>
{sdkVersion === '4.0.3' && (
{sdkVersion === '4.0.4' && (
<>
<Menu>
<MenuButton as={Button} rightIcon={<ChevronDownIcon />}>
Expand Down
10 changes: 5 additions & 5 deletions src/context/CBWSDKReactContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -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 CoinbaseWalletSDK403 } from '@coinbase/wallet-sdk-4.0.3';
import { CoinbaseWalletSDK as CoinbaseWalletSDK404 } from '@coinbase/wallet-sdk-4.0.4';
import React, { useEffect, useMemo } from 'react';

type CBWSDKProviderProps = {
Expand All @@ -10,7 +10,7 @@ type CBWSDKProviderProps = {
const CBWSDKReactContext = React.createContext(null);

const SELECTED_SDK_KEY = 'selected_sdk_version';
export const sdkVersions = ['4.0.3', '3.9.3', '3.7.2'] as const;
export const sdkVersions = ['4.0.4', '3.9.3', '3.7.2'] as const;
export type SDKVersionType = (typeof sdkVersions)[number];

const SELECTED_SCW_URL_KEY = 'scw_url';
Expand Down Expand Up @@ -73,8 +73,8 @@ export function CBWSDKReactContextProvider({ children }: CBWSDKProviderProps) {
useEffect(() => {
let cbwsdk;
let preference;
if (version === '4.0.3') {
cbwsdk = new CoinbaseWalletSDK403({
if (version === '4.0.4') {
cbwsdk = new CoinbaseWalletSDK404({
appName: 'SDK Playground',
appChainIds: [84532, 8452],
});
Expand All @@ -99,7 +99,7 @@ export function CBWSDKReactContextProvider({ children }: CBWSDKProviderProps) {
}, [version, option]);

useEffect(() => {
if (version === '4.0.3') {
if (version === '4.0.4') {
if (scwUrl) window.setPopupUrl?.(scwUrl);
}
}, [version, scwUrl, sdk]);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1539,17 +1539,17 @@ __metadata:
languageName: node
linkType: hard

"@coinbase/wallet-sdk-4.0.3@npm:@coinbase/[email protected].3":
version: 4.0.3
resolution: "@coinbase/wallet-sdk@npm:4.0.3"
"@coinbase/wallet-sdk-4.0.4@npm:@coinbase/[email protected].4":
version: 4.0.4
resolution: "@coinbase/wallet-sdk@npm:4.0.4"
dependencies:
buffer: ^6.0.3
clsx: ^1.2.1
eventemitter3: ^5.0.1
keccak: ^3.0.3
preact: ^10.16.0
sha.js: ^2.4.11
checksum: 47c2818b57f13b1fa403a5e79fc3e039a8cfc4daf9e92910aec4fe32caa4f2326d13c7ff26bbe1921cdcae29acfe41fbf5f0d3c9d58ab39035f05b1737bc06ab
checksum: 002d03d791683a15b465a285d7293a7994684f6f91d67c01b52ee9a07ba62f555a12d5c9471c964ccae0df048190f9c2e82929aeba9247e6d97ad1a9e9dd4132
languageName: node
linkType: hard

Expand All @@ -1561,7 +1561,7 @@ __metadata:
"@chakra-ui/react": ^2.8.0
"@coinbase/wallet-sdk-3.7.2": "npm:@coinbase/[email protected]"
"@coinbase/wallet-sdk-3.9.3": "npm:@coinbase/[email protected]"
"@coinbase/wallet-sdk-4.0.3": "npm:@coinbase/[email protected].3"
"@coinbase/wallet-sdk-4.0.4": "npm:@coinbase/[email protected].4"
"@emotion/react": ^11.11.1
"@emotion/styled": ^11.11.0
"@metamask/eth-sig-util": ^7.0.0
Expand Down

0 comments on commit f60e33a

Please sign in to comment.