Hi everybody!
In OpenZeppelin documentation for ERC20 API (v3) appears that the approve function return a bool.
However when writing unit tests with ethers I got a result of type Promise<ContractTransaction>
.
How Do I test If the approve operation occurred correctly? Is there a way to get the bool
result from ContractTransaction
object return type? Or Do I have to check if the approval event was emitted?
Any help will be great!
Cheers,
Cláudio.