snaketh4x0r asked on Telegram
is it possible to batch two transactions in one atomic call?
Using create2
snaketh4x0r asked on Telegram
is it possible to batch two transactions in one atomic call?
Using create2
@spalladino answered:
You could create a contract that runs the two operations and then self destructs, but you don't really need create2 for that.
snaketh4x0r replied:
Thanks
Any other way ?
Just want to avoid the whole contract deployment costs associated
Self destruct gas refunds are capped so one contract deployment transaction for every user on my dapp doesn’t seems a good option
@spalladino answered:
Depends on what contracts you are interacting with. Is msg.sender relevant? Otherwise, you can just have a single contract of yours with a method doEverything that takes care of all operations, that your users can call.
snaketh4x0r replied:
Yes it's relevant
@spalladino answered:
You could then roll out smart wallets for your users with batch support. I think Authereum has support for it. @chriswhinfrey can you confirm?
@shanefontaine answered:
Filling in for Chris, yes you can do this. The Authereum contracts have batched support.