Hello, after using web3.js library in the Moralis version 0.0.184 I started to use the newest Moralis versions with ethers.js and for the contract write functions Iām using Moralis.executeFunction.
Itās working properly but I just noticed that if there is an error at the beginning of the transaction (e.g. insufficient funds) itās no more āmanaged byā Metamask, but itās thrown an error that I can catch.
So the old flow was:
click on a button (e.g. minting button) => Metamask popup opens => if there is a problem with the contract (e.g. is paused, or the user has not funds) directly Metamask is telling the user that the transaction is going to fail or canāt be performed
New flow:
click on a button (e.g. minting button) => If there is a problem with the contract as above, an error is thrown and can be caught, but the Metamask popup doesnāt appear anymore
In this way I have to manage the error to show a modal to the user, itās ok but I preferred when this was directly managed by the wallet.
Is there any way the old flow behavior can be restored?
Thank you