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
4fdd028d
Unverified
Commit
4fdd028d
authored
Dec 14, 2022
by
mergify[bot]
Committed by
GitHub
Dec 14, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4438 from ethereum-optimism/feat/semver-nft
ctp: bump semver to 1.0.0 for nft contracts
parents
923a01ad
5c54acd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
Optimist.t.sol
...ontracts-periphery/contracts/foundry-tests/Optimist.t.sol
+1
-1
AttestationStation.sol
...riphery/contracts/universal/op-nft/AttestationStation.sol
+2
-2
Optimist.sol
...ntracts-periphery/contracts/universal/op-nft/Optimist.sol
+2
-1
No files found.
packages/contracts-periphery/contracts/foundry-tests/Optimist.t.sol
View file @
4fdd028d
...
...
@@ -56,7 +56,7 @@ contract OptimistTest is Optimist_Initializer {
// expect attestationStation to be set
assertEq(address(optimist.ATTESTATION_STATION()), address(attestationStation));
assertEq(optimist.ATTESTOR(), alice_admin);
assertEq(optimist.version(), "
0.0.1
");
assertEq(optimist.version(), "
1.0.0
");
}
/**
...
...
packages/contracts-periphery/contracts/universal/op-nft/AttestationStation.sol
View file @
4fdd028d
...
...
@@ -42,9 +42,9 @@ contract AttestationStation is Semver {
);
/**
* @custom:semver
0.0.1
* @custom:semver
1.0.0
*/
constructor() Semver(
0, 0, 1
) {}
constructor() Semver(
1, 0, 0
) {}
/**
* @notice Allows anyone to create attestations.
...
...
packages/contracts-periphery/contracts/universal/op-nft/Optimist.sol
View file @
4fdd028d
...
...
@@ -29,6 +29,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
/**
* @notice Initialize the Optimist contract.
* @custom:semver 1.0.0
* @dev call initialize function
* @param _name The token name.
* @param _symbol The token symbol.
...
...
@@ -40,7 +41,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
string memory _symbol,
address _attestor,
AttestationStation _attestationStation
) Semver(
0, 0, 1
) {
) Semver(
1, 0, 0
) {
ATTESTOR = _attestor;
ATTESTATION_STATION = _attestationStation;
initialize(_name, _symbol);
...
...
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