forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: semver natspec check failure (#79)
* fix: semver natspec check failure * fix: ignore mock contracts in semver natspec script * fix: error message
- Loading branch information
Showing
3 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/contracts-bedrock/test/mocks/SuperchainERC20Implementation.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.25; | ||
|
||
import { SuperchainERC20 } from "src/L2/SuperchainERC20.sol"; | ||
|
||
/// @title SuperchainERC20Implementation Mock contract | ||
/// @notice Mock contract just to create tests over an implementation of the SuperchainERC20 abstract contract. | ||
contract SuperchainERC20Implementation_MockContract is SuperchainERC20 { | ||
/// @notice Semantic version. | ||
/// @custom:semver 1.0.0-beta.1 | ||
string public constant override version = "1.0.0-beta.1"; | ||
|
||
function name() public pure override returns (string memory) { | ||
return "SuperchainERC20"; | ||
} | ||
|
||
function symbol() public pure override returns (string memory) { | ||
return "SCE"; | ||
} | ||
} |