Skip to content

Commit 1f08d63

Browse files
committed
Fixing 'too many digits' issue
1 parent 3e4fd2a commit 1f08d63

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

solidity/random-beacon/contracts/RandomBeacon.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ contract RandomBeacon is Ownable {
178178
relayRequestFee = 0;
179179
relayEntrySubmissionEligibilityDelay = 10;
180180
relayEntryHardTimeout = 5760; // ~24h assuming 15s block time
181-
callbackGasLimit = 200000;
181+
callbackGasLimit = 200e3;
182182
groupCreationFrequency = 10;
183183
groupLifetime = 2 weeks;
184184
dkg.setResultChallengePeriodLength(1440); // ~6h assuming 15s block time

solidity/random-beacon/contracts/RandomBeaconGovernance.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ contract RandomBeaconGovernance is Ownable {
322322
{
323323
/* solhint-disable not-rely-on-time */
324324
require(
325-
_newCallbackGasLimit > 0 && _newCallbackGasLimit <= 1000000,
326-
"Callback gas limit must be > 0 and <= 1000000"
325+
_newCallbackGasLimit > 0 && _newCallbackGasLimit <= 1e6,
326+
"Callback gas limit must be > 0 and <= 1e6"
327327
);
328328
newCallbackGasLimit = _newCallbackGasLimit;
329329
callbackGasLimitChangeInitiated = block.timestamp;
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"detectors_to_exclude": "assembly,timestamp,solc-version,too-many-digits,naming-convention",
2+
"detectors_to_exclude": "assembly,timestamp,solc-version,naming-convention",
33
"hardhat_artifacts_directory": "./build",
44
"filter_paths": "test|node_modules|BytesLib.sol|ModUtils.sol|AltBn128.sol"
55
}

0 commit comments

Comments
 (0)