connect
connect copied to clipboard
[WalletConnect] error using WC config in Connect
when trying to run the below snippet:
import { connect } from '@stacks/connect';
let response = await connect({
walletConnect: {
projectId: wcId,
},
});
or even...
import { WalletConnect, connect } from '@stacks/connect';
let response = await connect({
walletConnect: {
projectId: wcId,
networks: [
WalletConnect.Networks.Stacks
],
},
});
i'm able to see the WalletConnect option appear in the Stacks Connect modal, but after clicking on 'connect', an error is thrown below:
>> WalletConnectProvider request error TypeError: Cannot use 'in' operator to search for 'network' in undefined
looks like the error stems from n = "network" in s ? s.network : void 0; in the function getTargetCaipNetworkId
im running this locally on a Vitejs React app.
cc @jfstn @jannik-stacks
Can i take this
Can i take this
please do! resolving this issue would help alot