Is there anyway to contract calling contract?

PranayPranay Member Posts: 58
Hi Team,

I need suggestion or example for contract calling another contract. In such case contract must have to have some ether to proceed with transactions.

Any inputs highly appreciated.

TIA

Pranay

Comments

  • chrisethchriseth Member Posts: 170 ✭✭✭
    edited June 2015
    It might be that you have a misconception here. The calling contract does not need ether (i.e. this.balance can be zero), it only needs gas.
    In general you do not have to care about that when you design your contract. You only need to send enough gas together with the outermost transaction (i.e. _the_ transaction, the others are only message-calls).
  • PranayPranay Member Posts: 58
Sign In or Register to comment.