owlprotocol / contracts

MIT License
3 stars 4 forks source link

Universal Contract Tests #292

Closed HrikB closed 2 years ago

HrikB commented 2 years ago

Just like the ERC165.test.ts, create universal tests for these functions:

/**
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();
}