gregfromstl 98a9e226fa fix(ts): import of coinbase sdk in vite (#3562)
### TL;DR

Corrected the import handling for CoinbaseWalletSDK in the coinbaseWebSDK.ts file.

### What changed?

The import statement for CoinbaseWalletSDK was modified to handle cases where the import does not return a default function directly.

### How to test?

- Verify the Coinbase wallet integration in the application.
- Ensure that different environments (e.g., development, production) can import and utilize the CoinbaseWalletSDK without errors.

### Why make this change?

This change ensures that the CoinbaseWalletSDK import is handled correctly, thereby preventing potential import errors that could occur in various environments.

---

<!-- start pr-codex -->

---

## PR-Codex overview
This PR fixes coinbase wallet connections on Vite by addressing import errors related to `CoinbaseWalletSDK`.

### Detailed summary
- Fixed import error for `CoinbaseWalletSDK` on Vite
- Added workaround for Vite dev import issues
- Ensured proper initialization of `CoinbaseWalletSDK` to connect coinbase wallet

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-07-01 22:05:33 +00:00
2024-06-29 02:14:34 +00:00
2024-04-10 08:44:09 -07:00
2024-02-06 13:52:51 -08:00
2024-06-18 22:42:01 -07:00
2024-06-20 20:36:16 +00:00
2023-03-31 01:28:56 +00:00



thirdweb TypeScript SDK

Build Status Join our Discord!

All-in-one web3 SDK for Browser, Node and Mobile apps

Features

  • Support for React & React-Native
  • First party support for Embedded Wallets (social/email login)
  • First party support for Account Abstraction
  • Instant connection to any chain with RPC Edge integration
  • Integrated IPFS upload/download
  • UI Components for connection, transactions, nft rendering
  • High level contract extensions for interacting with common standards
  • Automatic ABI resolution

Library Comparison

thirdweb Wagmi + Viem Ethers@6
Type safe contract API ✅ ✅ ✅
Type safe wallet API ✅ ✅ ✅
EVM utils ✅ ✅ ✅
RPC for any EVM ✅  ⚠️ public RPC only ❌
Automatic ABI Resolution ✅ ❌ ❌
IPFS Upload/Download ✅ ❌ ❌
Embedded wallet (email/ social login) ✅ ⚠️ via 3rd party ❌
Account abstraction (ERC4337) support ✅ ⚠️ via 3rd party ❌
Web3 wallet connectors ✅ ✅ ❌
Local wallet creation ✅ ✅ ✅
Auth (SIWE) ✅ ✅ ❌
Extensions functions for common standards ✅ ✅ ❌
React Hooks ✅ ✅ ❌
React UI components ✅ ❌ ❌
React Native Hooks ✅ ✅ ❌
React Native UI Components ✅ ❌ ❌

Contributing

We welcome contributions from all developers regardless of experience level. If you are interested in contributing, please read our Contributing Guide to learn how the repo works, how to test your changes, and how to submit a pull request.

See our open source page for more information on our open-source bounties and program.

Additional Resources

Support

For help or feedback, please visit our support site

Security

If you believe you have found a security vulnerability in any of our packages, we kindly ask you not to open a public issue; and to disclose this to us by emailing [email protected].

S
Description
No description provided
Readme
1.1 GiB
Languages
TypeScript 87.9%
MDX 11.1%
JavaScript 0.6%
CSS 0.4%