You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the ERC20Paymaster pay for gas with a USDC token if the wallet account has no ether?
The issue I am seeing is that the paymaster expects the transfer of USDC/token to be approved beforehand. However, since the wallet has no ether to start with, how does that approval happen?
Hello,
Can the ERC20Paymaster pay for gas with a USDC token if the wallet account has no ether?
The issue I am seeing is that the paymaster expects the transfer of USDC/token to be approved beforehand. However, since the wallet has no ether to start with, how does that approval happen?
In the ERC20Paymaster.t.sol file, on line 104, the wallet is funded with ether and does an approval first (on line 108.)
Maybe the token has to support permit, for this scenario to be supported, or perhaps I am just missing something here.
Thanks.
The text was updated successfully, but these errors were encountered: