I am trying to import interface in it's contract and overriding function. But 1 mapping is giving error.
Error:
Overriding public state variable return types differ.
Interface:
interface IPassCurrencies {
function currencyMapping(uint128 currencyIndex)
external
view
returns (PLibrary.CurrencyInfo memory);
}
Contract:
contract Currencies is Ownable, ReentrancyGuard, IPassCurrencies {
mapping(uint128 => PLibrary.CurrencyInfo)
public
override currencyMapping; // Error Here
....
}
Any idea where I am wrong?