[General] Failed transaction on ERC20 token transfer with paymaster. #253
-
EnvironmentMainnet Provide a brief description of the functionality you're trying to implement.We deployed an approval-based paymaster, and since then it managed to handle more than 800 transactions, but one specific user when tried to transfer some ZKUSD tokens, the transaction failed, we also tried to reproduce the error but we successfully managed to do the same transaction. What is the specific issue or error you're encountering?
Can you share the error messages or logs you're receiving, if any?This is the transaction address: https://explorer.zksync.io/tx/0x37eb2a44bd3c71a5a42d3a89adc9500dbda4e2a512e0286c9fdec3455d1f469c Status: Have you made any recent changes to the contract before encountering this issue?Not at all. Are there any external libraries or contracts that your contract interacts with?The user tried to transfer the ERC20 token and also used Paymaster. Can you provide the relevant portions of your contract code where the issue is occurring?we believe that the problem is not related to the paymaster, but also do not have any idea why this happened. Have you tried to isolate the problem, and if so, what were the results?No, could not even reproduce the problem, but successfully managed to transfer ZKUSD with the same paymaster: What steps have you already taken to try to resolve the issue?Before there was a similar problem that randomly failing transactions with Paymaster, the ML team said the reason behind it was sometimes transactions did have not enough gas fees that other transactions could cover their lack of gas fees, so they said the problem was with estimation, and then the problem was fixed by topping up the estimations. Repo Link (Optional)portal.txsync.io Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 4 replies
-
I have been submitting tons of answers to my paymaster and I get failed transactions all the time on it. It happens when two concurrent answers are submitted that are both valid at the time, but once one is accepted the other becomes invalid. This invalid transaction will still go to the paymaster and FAIL and make the paymaster pay fee. I think this is a big error |
Beta Was this translation helpful? Give feedback.
-
@mshojaei-txfusion Could you please post the code for the paymaster so we can take a closer look? The error |
Beta Was this translation helpful? Give feedback.
-
I think I am mistaken and we need a
But his error doesnt seem related to out of gas? So I am not sure, it doesnt seem like there was any error in the transfer (the user had that amount of USDC, maybe the transfer attempted to move too much UDSC or other asset he didnt have causing it to error?? |
Beta Was this translation helpful? Give feedback.
@mshojaei-txfusion Could you please post the code for the paymaster so we can take a closer look? The error
Error function_selector = 0x, data = 0x
can be generic at times, but usually refers to accessing methods that don't exist.