@coinbase/create-cdp-app 0.0.69 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template-nextjs/package.json +2 -2
- package/template-nextjs/src/components/evm-smart/SmartAccountTransaction.tsx +1 -1
- package/template-react/package.json +2 -2
- package/template-react/src/evm-smart/SmartAccountTransaction.tsx +1 -1
- package/template-react-native/evm-eoa/WalletHeader.tsx +1 -1
- package/template-react-native/evm-smart/SmartAccountTransaction.tsx +1 -1
- package/template-react-native/evm-smart/WalletHeader.tsx +1 -1
- package/template-react-native/package.json +2 -2
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export default function SmartAccountTransaction(props: Props) {
|
|
|
23
23
|
const [userOperationHash, setUserOperationHash] = useState("");
|
|
24
24
|
const [errorMessage, setErrorMessage] = useState("");
|
|
25
25
|
|
|
26
|
-
const smartAccount = currentUser?.
|
|
26
|
+
const smartAccount = currentUser?.evmSmartAccountObjects?.[0]?.address;
|
|
27
27
|
|
|
28
28
|
const hasBalance = useMemo(() => {
|
|
29
29
|
return balance && balance !== "0";
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"@coinbase/cdp-core": "latest",
|
|
17
17
|
"@coinbase/cdp-hooks": "latest",
|
|
18
18
|
"@coinbase/cdp-react": "latest",
|
|
19
|
-
"react": "~19.1.
|
|
20
|
-
"react-dom": "~19.1.
|
|
19
|
+
"react": "~19.1.2",
|
|
20
|
+
"react-dom": "~19.1.2",
|
|
21
21
|
"viem": "^2.33.0",
|
|
22
22
|
"@solana/web3.js": "^1.98.4",
|
|
23
23
|
"buffer": "^6.0.3"
|
|
@@ -23,7 +23,7 @@ function SmartAccountTransaction(props: Props) {
|
|
|
23
23
|
const [userOperationHash, setUserOperationHash] = useState("");
|
|
24
24
|
const [errorMessage, setErrorMessage] = useState("");
|
|
25
25
|
|
|
26
|
-
const smartAccount = currentUser?.
|
|
26
|
+
const smartAccount = currentUser?.evmSmartAccountObjects?.[0]?.address;
|
|
27
27
|
|
|
28
28
|
const hasBalance = useMemo(() => {
|
|
29
29
|
return balance && balance !== "0";
|
|
@@ -15,7 +15,7 @@ export const WalletHeader: React.FC<WalletHeaderProps> = ({ onSignOut }) => {
|
|
|
15
15
|
const { currentUser } = useCurrentUser();
|
|
16
16
|
|
|
17
17
|
// Use EVM address if available, otherwise fall back to smart account
|
|
18
|
-
const evmWalletAddress = evmAddress || currentUser?.
|
|
18
|
+
const evmWalletAddress = evmAddress || currentUser?.evmSmartAccountObjects?.[0]?.address;
|
|
19
19
|
|
|
20
20
|
const formatAddress = (address: string) => {
|
|
21
21
|
if (!address) return "";
|
|
@@ -73,7 +73,7 @@ function SmartAccountTransaction(props: Props) {
|
|
|
73
73
|
const [errorMessage, setErrorMessage] = useState("");
|
|
74
74
|
const { colors } = useTheme();
|
|
75
75
|
|
|
76
|
-
const smartAccount = currentUser?.
|
|
76
|
+
const smartAccount = currentUser?.evmSmartAccountObjects?.[0]?.address;
|
|
77
77
|
|
|
78
78
|
const formattedUsdcBalance = useMemo(() => {
|
|
79
79
|
if (usdcBalance === undefined) return undefined;
|
|
@@ -15,7 +15,7 @@ export const WalletHeader: React.FC<WalletHeaderProps> = ({ onSignOut }) => {
|
|
|
15
15
|
const { currentUser } = useCurrentUser();
|
|
16
16
|
|
|
17
17
|
// Use EVM address if available, otherwise fall back to smart account
|
|
18
|
-
const evmWalletAddress = evmAddress || currentUser?.
|
|
18
|
+
const evmWalletAddress = evmAddress || currentUser?.evmSmartAccountObjects?.[0]?.address;
|
|
19
19
|
|
|
20
20
|
const formatAddress = (address: string) => {
|
|
21
21
|
if (!address) return "";
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"expo-secure-store": "^15.0.7",
|
|
24
24
|
"expo-status-bar": "~2.2.3",
|
|
25
25
|
"expo-web-browser": "~15.0.8",
|
|
26
|
-
"react": "19.1.
|
|
26
|
+
"react": "19.1.2",
|
|
27
27
|
"react-native": "0.79.6",
|
|
28
28
|
"react-native-get-random-values": "^1.11.0",
|
|
29
29
|
"react-native-quick-crypto": "^0.7.17",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/core": "^7.25.2",
|
|
35
|
-
"@types/react": "19.1.
|
|
35
|
+
"@types/react": "19.1.2",
|
|
36
36
|
"@types/ungap__structured-clone": "^1.2.0",
|
|
37
37
|
"typescript": "~5.8.3"
|
|
38
38
|
}
|