How to sign an encoded approval call? #2499
Unanswered
Madeindreams
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 we Encode a function call to be passed has low level call. The call get executed in the context of the contract.
How could I, for example;
Sign an approval to be made in a low-level call on behalf of the msg.sender.
For instance
Is there a way to sign this so the contract make the approval call on our behalf within the actual call that leads to the transfer?
Is it even possible to do??
In solidity by example they have this example base on 2 contracts. Can it work with EOA?
If I turn this call into an approval. The call is working but the allowance is not on my account it remains on the contract account.
What is the mechanic that the Permit feature use then?? Does it have to be implemented in the token contract??
Indeed The approval can't be passed like that. The ERC20 Permit also needs to be part of the token contract.
Beta Was this translation helpful? Give feedback.
All reactions