-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fixed prettier fix: typo in address starting with 0 fix: get correct value of counter when doing snapshot
- Loading branch information
Showing
30 changed files
with
946 additions
and
387 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
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,32 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause-Clear | ||
|
||
pragma solidity ^0.8.24; | ||
|
||
import "../lib/ACL.sol"; | ||
|
||
contract ACLUpgradedExample is ACL { | ||
/// @notice Name of the contract | ||
string private constant CONTRACT_NAME = "ACL"; | ||
|
||
/// @notice Version of the contract | ||
uint256 private constant MAJOR_VERSION = 0; | ||
uint256 private constant MINOR_VERSION = 2; | ||
uint256 private constant PATCH_VERSION = 0; | ||
|
||
/// @notice Getter for the name and version of the contract | ||
/// @return string representing the name and the version of the contract | ||
function getVersion() external pure virtual override returns (string memory) { | ||
return | ||
string( | ||
abi.encodePacked( | ||
CONTRACT_NAME, | ||
" v", | ||
Strings.toString(MAJOR_VERSION), | ||
".", | ||
Strings.toString(MINOR_VERSION), | ||
".", | ||
Strings.toString(PATCH_VERSION) | ||
) | ||
); | ||
} | ||
} |
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,32 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause-Clear | ||
|
||
pragma solidity ^0.8.24; | ||
|
||
import "../lib/ACL.sol"; | ||
|
||
contract ACLUpgradedExample2 is ACL { | ||
/// @notice Name of the contract | ||
string private constant CONTRACT_NAME = "ACL"; | ||
|
||
/// @notice Version of the contract | ||
uint256 private constant MAJOR_VERSION = 0; | ||
uint256 private constant MINOR_VERSION = 3; | ||
uint256 private constant PATCH_VERSION = 0; | ||
|
||
/// @notice Getter for the name and version of the contract | ||
/// @return string representing the name and the version of the contract | ||
function getVersion() external pure virtual override returns (string memory) { | ||
return | ||
string( | ||
abi.encodePacked( | ||
CONTRACT_NAME, | ||
" v", | ||
Strings.toString(MAJOR_VERSION), | ||
".", | ||
Strings.toString(MINOR_VERSION), | ||
".", | ||
Strings.toString(PATCH_VERSION) | ||
) | ||
); | ||
} | ||
} |
Oops, something went wrong.