Commit 45225f1f authored by lbeder's avatar lbeder Committed by Mark Tyneway

Remove unnecessary initializers

parent cb869c43
......@@ -3,7 +3,6 @@
pragma solidity 0.8.19;
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { Semver } from "../universal/Semver.sol";
......@@ -49,7 +48,7 @@ struct AttestationsResult {
/**
* @title EAS - Ethereum Attestation Service
*/
contract EAS is IEAS, Semver, Initializable, EIP712Verifier {
contract EAS is IEAS, Semver, EIP712Verifier {
using Address for address payable;
error AlreadyRevoked();
......@@ -97,29 +96,6 @@ contract EAS is IEAS, Semver, Initializable, EIP712Verifier {
_schemaRegistry = registry;
}
/**
* @dev Initializes the contract and its parents.
*/
function initialize() external initializer {
__EAS_init();
}
// solhint-disable func-name-mixedcase
/**
* @dev Upgradeable initialization.
*/
function __EAS_init() internal onlyInitializing {
__EAS_init_unchained();
}
/**
* @dev Upgradeable initialization.
*/
function __EAS_init_unchained() internal onlyInitializing {}
// solhint-enable func-name-mixedcase
/**
* @inheritdoc IEAS
*/
......
......@@ -2,8 +2,6 @@
pragma solidity 0.8.19;
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { Semver } from "../universal/Semver.sol";
import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
......@@ -14,7 +12,7 @@ import { ISchemaRegistry, SchemaRecord } from "./ISchemaRegistry.sol";
/**
* @title The global schema registry.
*/
contract SchemaRegistry is ISchemaRegistry, Semver, Initializable {
contract SchemaRegistry is ISchemaRegistry, Semver {
error AlreadyExists();
// The global mapping between schema records and their IDs.
......@@ -28,29 +26,6 @@ contract SchemaRegistry is ISchemaRegistry, Semver, Initializable {
*/
constructor() Semver(1, 0, 0) {}
/**
* @dev Initializes the contract and its parents.
*/
function initialize() external initializer {
__SchemaRegistry_init();
}
// solhint-disable func-name-mixedcase
/**
* @dev Upgradeable initialization.
*/
function __SchemaRegistry_init() internal onlyInitializing {
__SchemaRegistry_init_unchained();
}
/**
* @dev Upgradeable initialization.
*/
function __SchemaRegistry_init_unchained() internal onlyInitializing {}
// solhint-enable func-name-mixedcase
/**
* @inheritdoc ISchemaRegistry
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment