-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot read properties of undefined (reading 'request') on transaction execution with wagmi #176
Comments
Thanks for reporting @polus-arcticus , We are working on investigation. |
Hey @polus-arcticus Could you try following wagmi config ? export const config = createConfig({
chains: [flowMainnet, flowTestnet],
connectors: [
injected()
],
transports: {
[flowMainnet.id]: http(),
[flowTestnet.id]: http(),
},
}) |
Hi @lmcmz thanks for taking a look at this I can try it, however that config is unfortunately not fit to my use case. we see
For my dapp its absolutely essential to use the rpc url provided by the browser wallet. Last time i checked wagmi prefered using the custom transport with window.ethereum or the https://wagmi.sh/core/api/transports/unstable_connector (which takes the wagmi injected object) I have found success with both metamask and (with walletConnect as transport) wallet connect. Admittantly it is a rarer config, but the one that is most decentralized in a sense as it does rely on the public rpc or one provided by a central hosting service of the dapp |
Yeah, we're still trying to find out the root cause behind the scene. |
BTW, our wallet is also using the public getaway URL at the moment. |
When using the latest version of wagmi, you need to add |
Thanks, is there a place to change the default RPC? I didn't look as the alchemy flow rpc for mainnet was also having issues raised https://github.com/polus-arcticus/alchemy-flow-bug and i cant seem to find a networks tab @tombeckenham thanks for checking, however even when i added @wagmi/core as a deps i still got the same error with 2.15 https://github.com/polus-arcticus/flow-wagmi-bug/blob/default/errors/wagmi-core2.15.png |
I've reopened this ticket @polus-arcticus. I can't repeat the problem at the moment. I'm doing some work right now to upgrade the extension to latest versions of node and later dependency versions. I'm going to look into any changes that might have caused this issue and get back to you. |
Describe the Bug
when trying to execute a transaction through the wallet while connected with the wagmi/viem stack we receive an error when metamask does fine
https://github.com/polus-arcticus/flow-wagmi-bug
Expected experience
should execute the transaction, see the hash in the console, than see the receipt henceafter
Steps To Reproduce
git clone https://github.com/polus-arcticus/flow-wagmi-bug
npm install, npm run dev
connect wallet while on 747 chain
try to set the number of the deployed Counter.sol contract
see request errror
Environment
The text was updated successfully, but these errors were encountered: