'getPastEvents() not returning for plygon

I have a perfectly working code on Ethereum (Ropsten Testnet). I recently migrated to Polygon Testnet (mumbai). Deployment went smooth (See Deployment on Polyscan)

I can play with my SmartContract using Remix. Events are getting fired (See the Events Log).

I have the following code in my Dapp, whuch get the events successfully from Ropsten, but is not returning anything for Polygon-Testnet (the contract address is correct). What am I doing wrong here? Does Polygon use the same JS Web3 APIs (web3 ^1.3.6)?

  debugger;
  let pastEventsAdded = await AccountsContract.getPastEvents(
    "AccountAdded",
    ev
  );
  debugger;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source