mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-08 02:12:34 -05:00
explicitly update config on switchChain
This commit is contained in:
committed by
lucas-neynar
parent
6691998a1d
commit
e89dd14566
@@ -67,6 +67,11 @@ export function frameConnector() {
|
||||
method: "wallet_switchEthereumChain",
|
||||
params: [{ chainId: numberToHex(chainId) }],
|
||||
});
|
||||
|
||||
// explicitly emit this event as a workaround for ethereum provider not
|
||||
// emitting events, can remove once events are flowing
|
||||
config.emitter.emit("change", { chainId });
|
||||
|
||||
return chain;
|
||||
},
|
||||
onAccountsChanged(accounts) {
|
||||
|
||||
Reference in New Issue
Block a user