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
f822fb90
Commit
f822fb90
authored
Jul 15, 2023
by
lbeder
Committed by
Mark Tyneway
Jul 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch SchemaRegistry from the predeploys
parent
d29e1929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
EAS.sol
packages/contracts-bedrock/contracts/EAS/EAS.sol
+3
-9
No files found.
packages/contracts-bedrock/contracts/EAS/EAS.sol
View file @
f822fb90
...
@@ -5,6 +5,7 @@ pragma solidity 0.8.19;
...
@@ -5,6 +5,7 @@ pragma solidity 0.8.19;
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { Semver } from "../universal/Semver.sol";
import { Semver } from "../universal/Semver.sol";
import { Predeploys } from "../libraries/Predeploys.sol";
import { EIP712Verifier } from "./eip712/EIP712Verifier.sol";
import { EIP712Verifier } from "./eip712/EIP712Verifier.sol";
...
@@ -70,7 +71,7 @@ contract EAS is IEAS, Semver, EIP712Verifier {
...
@@ -70,7 +71,7 @@ contract EAS is IEAS, Semver, EIP712Verifier {
error WrongSchema();
error WrongSchema();
// The global schema registry.
// The global schema registry.
ISchemaRegistry private immutable _schemaRegistry;
ISchemaRegistry private immutable _schemaRegistry
= ISchemaRegistry(Predeploys.SCHEMA_REGISTRY)
;
// The global mapping between attestations and their UIDs.
// The global mapping between attestations and their UIDs.
mapping(bytes32 uid => Attestation attestation) private _db;
mapping(bytes32 uid => Attestation attestation) private _db;
...
@@ -86,15 +87,8 @@ contract EAS is IEAS, Semver, EIP712Verifier {
...
@@ -86,15 +87,8 @@ contract EAS is IEAS, Semver, EIP712Verifier {
/**
/**
* @dev Creates a new EAS instance.
* @dev Creates a new EAS instance.
*
* @param registry The address of the global schema registry.
*/
*/
constructor(ISchemaRegistry registry) Semver(1, 0, 0) EIP712Verifier("EAS", "1.0.0") {
constructor() Semver(1, 0, 0) EIP712Verifier("EAS", "1.0.0") {
if (address(registry) == address(0)) {
revert InvalidRegistry();
}
_schemaRegistry = registry;
}
}
/**
/**
...
...
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