File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ contract IdentityVerificationHubImplV2 is ImplRoot {
233233 * This function is used when upgrading from V1 to V2, hence uses reinitializer(2).
234234 * The circuit version is set to 2 for V2 hub compatibility.
235235 */
236- function initialize () external reinitializer (9 ) {
236+ function initialize () external reinitializer (11 ) {
237237 __ImplRoot_init ();
238238
239239 // Initialize circuit version to 2 for V2 hub
@@ -994,8 +994,9 @@ contract IdentityVerificationHubImplV2 is ImplRoot {
994994
995995 uint256 currentTimestamp = Formatter.proofDateToUnixTimestamp (dateNum);
996996 uint256 startOfDay = _getStartOfDayTimestamp ();
997+ uint256 endOfDay = startOfDay + 1 days - 1 ;
997998
998- if (currentTimestamp < startOfDay - 1 days + 1 || currentTimestamp > startOfDay + 1 days - 1 ) {
999+ if (currentTimestamp < startOfDay - 1 days + 1 || currentTimestamp > endOfDay + 1 days) {
9991000 revert CurrentDateNotInValidRange ();
10001001 }
10011002 }
@@ -1012,8 +1013,9 @@ contract IdentityVerificationHubImplV2 is ImplRoot {
10121013
10131014 uint256 currentTimestamp = Formatter.proofDateToUnixTimestampNumeric (dateNum);
10141015 uint256 startOfDay = _getStartOfDayTimestamp ();
1016+ uint256 endOfDay = startOfDay + 1 days - 1 ;
10151017
1016- if (currentTimestamp < startOfDay - 1 days + 1 || currentTimestamp > startOfDay + 1 days - 1 ) {
1018+ if (currentTimestamp < startOfDay - 1 days + 1 || currentTimestamp > endOfDay + 1 days) {
10171019 revert CurrentDateNotInValidRange ();
10181020 }
10191021 }
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ const config: HardhatUserConfig = {
6767 } ,
6868 etherscan : {
6969 apiKey : process . env . CELOSCAN_API_KEY as string ,
70+ // apiKey: {
71+ // "celo-sepolia": process.env.CELOSCAN_API_KEY as string,
72+ // },
7073 customChains : [
7174 {
7275 network : "celo" ,
Original file line number Diff line number Diff line change 9696 "DeployHubV2#IdentityVerificationHubImplV2" : " 0xC49b7FD44Cb4bE0482AEa3335Eb2CeFb1b81B0C9" ,
9797 "DeployHubV2#IdentityVerificationHub" : " 0x16ECBA51e18a4a7e61fdC417f0d47AFEeDfbed74" ,
9898 "DeployNewHubAndUpgradee#IdentityVerificationHubV2" : " 0x16ECBA51e18a4a7e61fdC417f0d47AFEeDfbed74" ,
99- "DeployNewHubAndUpgradee#CustomVerifier" : " 0xa3140DbC877A0Ac5CD8d0Eb9DB9930d62bF28c2c " ,
100- "DeployNewHubAndUpgradee#IdentityVerificationHubImplV2" : " 0x0B948eB7C2994948453c77370B4b8d8CBf439bc3 "
99+ "DeployNewHubAndUpgradee#CustomVerifier" : " 0x2711E535D68D8B8729a7d126fEb13aEc0fe29A27 " ,
100+ "DeployNewHubAndUpgradee#IdentityVerificationHubImplV2" : " 0x48985ec4f71cBC8f387c5C77143110018560c7eD "
101101}
Original file line number Diff line number Diff line change 8888 "DeployAadhaarRegistryModule#IdentityRegistry" : " 0xd603Fa8C8f4694E8DD1DcE1f27C0C3fc91e32Ac4" ,
8989 "UpdateAllRegistries#a3" : " 0xd603Fa8C8f4694E8DD1DcE1f27C0C3fc91e32Ac4" ,
9090 "DeployHubV2#IdentityVerificationHub" : " 0xe57F4773bd9c9d8b6Cd70431117d353298B9f5BF" ,
91- "UpdateHubRegistries#IdentityVerificationHubImplV2" : " 0xe57F4773bd9c9d8b6Cd70431117d353298B9f5BF"
91+ "UpdateHubRegistries#IdentityVerificationHubImplV2" : " 0xe57F4773bd9c9d8b6Cd70431117d353298B9f5BF" ,
92+ "DeployNewHubAndUpgradee#IdentityVerificationHubV2" : " 0xe57F4773bd9c9d8b6Cd70431117d353298B9f5BF" ,
93+ "DeployNewHubAndUpgradee#CustomVerifier" : " 0x026696925F7DA40EE8B372442750A70BA9C006fA" ,
94+ "DeployNewHubAndUpgradee#IdentityVerificationHubImplV2" : " 0xa267e58B2d6BA9fc07Af06471423AFb56e4e82B3"
9295}
You can’t perform that action at this time.
0 commit comments