Closed HrikB closed 2 years ago
Just like the ERC165.test.ts, create universal tests for these functions:
ERC165.test.ts
/** Upgradeable functions */ function _authorizeUpgrade(address) internal override onlyOwner {} function getImplementation() external view returns (address) { return _getImplementation(); }
function versionRecipient() external pure override returns (string memory) { return '2.2.6'; }
/** * @notice the following 3 functions are all required for OpenGSN integration */ function _msgSender() internal view override(BaseRelayRecipient, ContextUpgradeable) returns (address sender) { sender = BaseRelayRecipient._msgSender(); } function _msgData() internal view override(BaseRelayRecipient, ContextUpgradeable) returns (bytes calldata) { return BaseRelayRecipient._msgData(); }
Just like the
ERC165.test.ts
, create universal tests for these functions: