You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have deployed 2 YourContract.sol, one on sepolia and other on goerli.
Current state of sepolia contract : 7 times the greetings was set (It should have 7 GreetingChange logged )
Current state of goerli contract : 3 times the greetings was set (It should have 3 GreetingChange logged )
Case 1: Wallet already and is on sepolia (0th chain of targetNetwork array ) and then we switch network
Screen.Recording.2023-11-30.at.1.08.57.PM.mov
For some reason even though I am connected to sepolia it shows the event count of goerli (maybe some caching issue with wagmi ? )
Case 2: Wallet is not connected and the connect
Screen.Recording.2023-11-30.at.1.07.16.PM.mov
When the wallet is not connected it nicely fetches events from 0th chain but once I connect to chain if you look at video, it gives me empty values.
NOTE: The case description that I shared are not always true and others might experience a bit different behaviour but would love it if you could monitor 2 cases titles and see the inconsistent behaviour.
Expected Behavior
For sepolia it should log 7 events and then when switched to goerli it should log 3 events
Sure @yehia67, assigned it to you! Thanks for taking a look at it! Please feel free to drop a comment if you have any doubts/face difficulty setting things up 🙌
Is there an existing issue for this?
Current Behavior
Context:
I have deployed 2
YourContract.sol
, one onsepolia
and other ongoerli
.Current state of
sepolia
contract : 7 times the greetings was set (It should have 7GreetingChange
logged )Current state of
goerli
contract : 3 times the greetings was set (It should have 3GreetingChange
logged )Case 1: Wallet already and is on
sepolia
(0th chain oftargetNetwork
array ) and then we switch networkScreen.Recording.2023-11-30.at.1.08.57.PM.mov
For some reason even though I am connected to
sepolia
it shows the event count ofgoerli
(maybe some caching issue withwagmi
? )Case 2: Wallet is not connected and the connect
Screen.Recording.2023-11-30.at.1.07.16.PM.mov
When the wallet is not connected it nicely fetches events from
0th
chain but once I connect to chain if you look at video, it gives me empty values.Expected Behavior
For
sepolia
it should log 7 events and then when switched togoerli
it should log3
eventsSteps To Reproduce
1 . Update
scaffold.config.ts
:targetNetworks: [chains.sepolia, chains.goerli]
&pollingInterval: 5000,
2 . Copy this inside externalContracts.ts
3 . Copy this inside `app/page.tsx` :
Anything else?
No response
The text was updated successfully, but these errors were encountered: