Skip to content

Commit 7025f0e

Browse files
0xChin0xOneTony
authored andcommitted
chore: use fixed variable for contract version (#457)
1 parent 7e2ce7e commit 7025f0e

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

packages/contracts-bedrock/snapshots/abi/ProposalValidator.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@
538538
"type": "string"
539539
}
540540
],
541-
"stateMutability": "pure",
541+
"stateMutability": "view",
542542
"type": "function"
543543
},
544544
{

packages/contracts-bedrock/snapshots/semver-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@
172172
"sourceCodeHash": "0x9baa0f9e744cc0ecc61d0fade8bffc18321b228833ea0904dc645f3975be9ed1"
173173
},
174174
"src/governance/ProposalValidator.sol:ProposalValidator": {
175-
"initCodeHash": "0x6bcced3e1050048ecc63fd4d9a86ec72e756de4cb328d29c357cc31c87834341",
176-
"sourceCodeHash": "0x9380a09eeb5f12304baf0d45ea14e7bbd1b046d805429bfe0de970a7dfccd176"
175+
"initCodeHash": "0x8f58c80a20e9f5e631d9451d86b2b5478a60879e58420f6788e75629f5863430",
176+
"sourceCodeHash": "0x1d4ce0d6f868bd36418e7e760c81ecb033c15720e6a35f088ea135620fcae91a"
177177
},
178178
"src/legacy/DeployerWhitelist.sol:DeployerWhitelist": {
179179
"initCodeHash": "0x53099379ed48b87f027d55712dbdd1da7d7099925426eb0531da9c0012e02c29",

packages/contracts-bedrock/src/governance/ProposalValidator.sol

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ contract ProposalValidator is OwnableUpgradeable, ReinitializableBase, ISemver {
206206
CONSTANTS
207207
//////////////////////////////////////////////////////////////*/
208208

209+
/// @notice Semantic version.
210+
/// @custom:semver 1.0.0
211+
string public constant version = "1.0.0";
212+
209213
/// @notice The divisor used for percentage calculations in optimistic voting modules.
210214
/// @dev Represents 100% in basis points (10,000 = 100%).
211215
uint256 public constant OPTIMISTIC_MODULE_PERCENT_DIVISOR = 10_000;
@@ -238,12 +242,6 @@ contract ProposalValidator is OwnableUpgradeable, ReinitializableBase, ISemver {
238242
/// @notice Mapping of proposal hash to their corresponding proposal data.
239243
mapping(bytes32 => ProposalData) internal _proposals;
240244

241-
/// @notice Semantic version.
242-
/// @custom:semver 1.0.0
243-
function version() public pure virtual returns (string memory) {
244-
return "1.0.0";
245-
}
246-
247245
/// @notice Constructs the ProposalValidator contract.
248246
/// @param _approvedProposerAttestationSchemaUid The schema UID for attestations in EAS for submitting proposals.
249247
/// @param _topDelegatesAttestationSchemaUid The schema UID for attestations in EAS for checking if the caller

0 commit comments

Comments
 (0)