0

I want to create a Contract (TokenTimelock from Open Zeppelin) inside of a registry contract. It seems as if my contract needs gas to do this. So I am wondering about using delegate call because I want the caller to pay for the gas, or I need to store ETH in my resgistry contract which I do not really want to do.

Am I correct that if a Contract is creating another contract that it is the one that will need to pay gas?

Aniket
  • 3,545
  • 2
  • 20
  • 42
Phillip Gibb
  • 484
  • 3
  • 11

1 Answers1

1

As of now, a contract cannot pay the gas for a transaction. In any form, it will be always an external account who will be paying it. Ether stored in a contract can be sent to another ethereum address but cannot be used as a fuel(gas) to a transaction.

See this:

Aniket
  • 3,545
  • 2
  • 20
  • 42