web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

[bug] `useAppKitProvider` not exporting `connection` as documented in reown documentation

Open Web3Dave opened this issue 1 year ago • 0 comments

Link to minimal reproducible example

https://github.com/DaveTheFrontEndDev/reown-solana-transaction-bug

Summary

Scenario

Using the React reown libraries in a simple vite setup, implementing the wagmi+solana multichain setup

Documented in the example here

Expected Behavior

useAppKitProvider hook should return a connection value as documented here (smart contract interaction section)

What is Actually Happening

connection is not being exported in the useAppKitProvider hook.

Producing the Bug

Simple Vite React app example Bug 2 in repo

  1. Copy .env.example into new file .env and replace with project id from here

  2. Run code example:

yarn install && yarn dev

Example Preview

https://github.com/user-attachments/assets/bf641969-34f4-43e4-b39f-2e9f08f2f3b6

List of related npm package versions

@reown/appkit: ^1.0.6 @reown/appkit-adapter-solana: ^1.0.7 @reown/appkit-adapter-wagmi: ^1.0.6 @reown/appkit-solana: ^1.0.6 @solana/wallet-adapter-wallets: ^0.19.32 @solana/web3.js: ^1.95.3 @tanstack/react-query: ^5.59.2 viem: ^2.21.15 react: ^18.2.0 wagmi: ^2.12.16

Web3Dave avatar Oct 09 '24 08:10 Web3Dave