I have a mapping:
mapping(bytes32 => string) requestToCharacterName;
I am trying to access it from HardHat as such:
contract.requestToCharacterName(bytes32)
And receiving the following error:
TypeError: contract.requestToCharacterName is not a function
What do I need to do in HardHat to properly access this mapping?