I have a function (f1) on my contract(c1). It calls function(f2) from another contract(c2).I want user to pay gas fee only for f1, and tx fee for f2 must be withdrawn from c1 address, not user. Is it possible?

Jul 21, 2021, 1:07 PM
No the caller has to pay gas for the whole transaction including any subtransactions made by initial function call. You can compute the gas required for sub transaction and refund the user from contract c1
Jul 21, 2021, 2:11 PM
Thanks. That’s all i wanted to know
Jul 21, 2021, 2:13 PM

© 2024 Draquery.com All rights reserved.