Code has to be migrated to new approach as documented over here. https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3
Code has to be migrated to new approach as documented over here.
https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3