pragma solidity ^0.4.24;
I'm trying to call another contract's functions to return values.
I have the below which successfully returns a true/false
_childAddress.call(bytes4(keccak256("isValidChild(uint256, uint256)")), _childModule6, 6) == true)
But when I try to return an actual value like so:
uint256 tokenId = _childAddress.call(bytes4(keccak256("totalSupply()")));
I get the following error:
Type bool is not implicitly convertible to expected type uint256. tokenId
I can't find the syntax anywhere for returning a value.
Any help appreciated.