Is Solidity creating an implicit getter or not for a nested contract that is created?
Example:
contract Foo {
....
}
contract Bar {
Foo public foo;
Bar() {
foo = new Foo();
}
}
When trying this out using Truffle, it tells me that Bar.foo()
is not part of the ABI.
Am I doing something wrong, or is foo()
just not being created by the Solidity compiler?
(I'd expect it to return the address of the created Foo()
contract)