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
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?