The Solidity Contract-Oriented Programming Language - By chatting here you agree to the https://github.com/ethereum/solidity/blob/develop/CODE_OF_CONDUCT.md
h = new Helper("abc", true);
make a new contract ?
contract Helper {
bytes3 name;
bool flag;
function getName() returns (bytes3 ret) { return name; }
function getFlag() returns (bool ret) { return flag; }
}
contract Main {
Helper h;
function init(address helperAddress){ h= Helper(helperAddress) }
function getFlag() returns (bool ret) { return h.getFlag(); }
function getName() returns (bytes3 ret) { return h.getName(); }
})
GAS
opcode which gives us the amount of gas still available, but the problem is that performing the call itself also costs some gas, so we have to subtract the amount of gas the call costs from the value provided by GAS
, and we also have to subtract the amount of gas it costs to perform the subtraction...
now (uint): current block timestamp (alias for block.timestamp)