Remix Error: Type error, Return argument type inaccessible dynamic type is not implicitly convertible to expected type (type of first return variable) bytes32[]
snippet code shown below: Do take note I didnt include the setter function.
enter code here
pragma solidity ^0.4.18;
contract DeployedContract {
struct emailNetworkLists {
bytes32[] emailArray;
}
struct Namecards{
address ethAddress;
bytes32 personName;
bytes32 designation;
bytes32 companyName;
bytes32 comaddress;
bytes32 emailId;
bytes32 mobNumber;
bytes32 date;
bool isActive;
uint index;
mapping(bytes32=> emailNetworkLists) contactList;
}
bytes32[] public addressList;
mapping(bytes32 => Namecards) public nameStructMapping;
function getEmails(bytes32 email, bytes32 date) public view returns(bytes32[]){
return (nameStructMapping[email].contactList[date].emailArray);
}
}
contract External {
DeployedContract d = DeployedContract(0xe90f4f8ae................);
function getEmailList(bytes32 email, bytes32 date) public view returns(bytes32[] ){ //error here on Remix
return (d.getEmails(email, date));
}
}