The account to ensure allowance for.
The ERC20 to approve.
The spender (EOA or contract) address for the allowance.
The signer of the account.
The minimum amount that must be approved.
Optional
currentAllowance: BigNumberIf provided, it will skip the allowance check and use this value instead.
an AllowanceResult struct.
Checks if the account has enough allowance for the given ERC20 token. If not, it will request the allowance. This will try to use permits if the contract supports ERC2612.