Hello, i’m using a fork of uniswap v2 with MetaMask as the web3 provider, problem is that the calls to blockNumber return a stale number and it doesn’t get updated unless i click on the extension. even if i do a new web3 provider with window.ethereum, even if try to get the blockNumber from window,ethereum, it’s still cached/stale . anyone had this issue ? any ideas?
It would be nice if you can share the code and the steps.
Did you contact Uniswap as well?
1 Like
It’s just the basic implementation with web3react. I can’t post links as a new user, I’m using from GitHub : /Uniswap/interface/tree/v2.6.5
The thing is it only arises with meta mask extension, if I use another extension everything works as expected, that’s why my hunch is that something maybe is cached in meta mask or something, even if I “provide” the dex with the up to date block number it seems that MetaMask returns the same stale result for contract calls also