transfer_failed with previous approve and message sign if there are 2 tokens no signed #70
Replies: 2 comments 9 replies
-
Hello @facilficom 1/ You create a swap transaction of a token that you did not approve (token + permit2) and the gas estimation fails. 2/ Then you approve the token (token + permit2) for another transaction and this swap succeeds. Then you estimate again the previous transaction and this time it works. Does it answer your question? |
Beta Was this translation helpful? Give feedback.
-
this is what i did {'from': '0x9a205aF2FA62bF5148533d93Eaad95EaD66453f8', 'to': '0x1A0A18AC4BECDDbd6389559687d1A73d8927E416', 'maxPriorityFeePerGas': 3750000000, 'maxFeePerGas': {'from': '0x9a205aF2FA62bF5148533d93Eaad95EaD66453f8', 'to': '0x1A0A18AC4BECDDbd6389559687d1A73d8927E416', 'maxPriorityFeePerGas': 1265656250, 'maxFeePerGas': real history: Please enter the amount of sDOGE to sell in the format: 20 An unexpected error occurred: Can't parse entities: can't find end of the entity starting at byte offset 67 Please enter the amount of sDOGE to sell in the format: 20 An unexpected error occurred: if i change wallet, or buy them with weth. the transaction work then (previous tryies) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I attempt to swap token A for token B and neither token A nor token B has been approved and signed message, the transaction fails. the fail give me transfer_failed but its only for the estimate gas that cannot be calculated in this case (doesnt work if i put a manual higher gas too)
However, when I first swap token A for WETH, and then swap token B for WETH in other transactions with sign message and approve, the previous failed one, now succeeds.
...
Beta Was this translation helpful? Give feedback.
All reactions