我有一张地图:
mapping(bytes32 => string) requestToCharacterName;我正试图从HardHat访问它:
contract.requestToCharacterName(bytes32)并收到以下错误:
TypeError: contract.requestToCharacterName is not a function在HardHat中,我需要做什么才能正确地访问这个映射?
https://ethereum.stackexchange.com/questions/111918
复制相似问题