Commit 4fdd028d authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #4438 from ethereum-optimism/feat/semver-nft

ctp: bump semver to 1.0.0 for nft contracts
parents 923a01ad 5c54acd7
...@@ -56,7 +56,7 @@ contract OptimistTest is Optimist_Initializer { ...@@ -56,7 +56,7 @@ contract OptimistTest is Optimist_Initializer {
// expect attestationStation to be set // expect attestationStation to be set
assertEq(address(optimist.ATTESTATION_STATION()), address(attestationStation)); assertEq(address(optimist.ATTESTATION_STATION()), address(attestationStation));
assertEq(optimist.ATTESTOR(), alice_admin); assertEq(optimist.ATTESTOR(), alice_admin);
assertEq(optimist.version(), "0.0.1"); assertEq(optimist.version(), "1.0.0");
} }
/** /**
......
...@@ -42,9 +42,9 @@ contract AttestationStation is Semver { ...@@ -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. * @notice Allows anyone to create attestations.
......
...@@ -29,6 +29,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver { ...@@ -29,6 +29,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
/** /**
* @notice Initialize the Optimist contract. * @notice Initialize the Optimist contract.
* @custom:semver 1.0.0
* @dev call initialize function * @dev call initialize function
* @param _name The token name. * @param _name The token name.
* @param _symbol The token symbol. * @param _symbol The token symbol.
...@@ -40,7 +41,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver { ...@@ -40,7 +41,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
string memory _symbol, string memory _symbol,
address _attestor, address _attestor,
AttestationStation _attestationStation AttestationStation _attestationStation
) Semver(0, 0, 1) { ) Semver(1, 0, 0) {
ATTESTOR = _attestor; ATTESTOR = _attestor;
ATTESTATION_STATION = _attestationStation; ATTESTATION_STATION = _attestationStation;
initialize(_name, _symbol); initialize(_name, _symbol);
......
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