Closed ZzzzHui closed 2 months ago
How about
CallWithENS
?
This name seems more general than what the contract is actually doing. It currently does:
So, we are mostly using this contract for asset transfers. Maybe AssetTransferToENS
?
This wouldn't be 100% accurate for the case of arbitrary message calls, but we could add a note there saying that this entry point can actually be used for more general use cases other than Ether withdrawals, and we're left with a more understandable name for 99% of use cases.
This needs a rebase.
rebased. Also moved internal functions to the end.
Since we're allowing
sendEtherToENS
to receive a payload, I think it would be good to have a test where the ENS node actually resolves to the address of a contract, and the payload encodes a function call. We could even recycle part of the "Ether mint" test case for that purpose.
agree
I've just noticed we're missing the deployment script of
SafeERC20Transfer
andAssetTransferToENS
. They could be deployed by adeploy/03_delegatecall.ts
script.
Yeah. But since SafeERC20Transfer
is not relevant with this PR, the deploy script will be done in another PR. Ok? :)
Thank you very much Gui !!!
Needs @pedroargento 's approval to merge :)
Thanks very much Pedro :)
How about
CallWithENS
?