If a smart contract A calls another smart Contract B function.
Then who will pay the gas fee? The contract itself?
Let's suppose i (msg.sender) called contract A function.
After that call contract A calls contract B function( lets say contract A was the parent of contract B) for some operation that makes the state changes in both contract A and B.
THEN IN this case
Msg.sender will have to pay the gas fee for all that?

Sep 20, 2020, 6:33 PM
the one that initiates the tx pays all the gas
technically, tx.origin
Sep 20, 2020, 6:43 PM

© 2024 Draquery.com All rights reserved.