Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
45225f1f
Commit
45225f1f
authored
Jul 15, 2023
by
lbeder
Committed by
Mark Tyneway
Jul 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary initializers
parent
cb869c43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
51 deletions
+2
-51
EAS.sol
packages/contracts-bedrock/contracts/EAS/EAS.sol
+1
-25
SchemaRegistry.sol
packages/contracts-bedrock/contracts/EAS/SchemaRegistry.sol
+1
-26
No files found.
packages/contracts-bedrock/contracts/EAS/EAS.sol
View file @
45225f1f
...
...
@@ -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
*/
...
...
packages/contracts-bedrock/contracts/EAS/SchemaRegistry.sol
View file @
45225f1f
...
...
@@ -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
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment