There are 2 contracts A
and B
.
A
has a mapping which returns Struct
:
mapping (bytes32 => Cup) public cups;
How can we read the cups
mapping in contract B
?
Following code doesn't work for sure:
interface CupsInteraface {
function cups(bytes32 cup) external returns (Struct);
}
Best Answer
There is no way to do this in a stable version of solidity, but possible in experimental