Skip to content

Commit

Permalink
add slither too many digits in contract
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Jun 10, 2024
1 parent 0e654fe commit 5a99207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions contracts/VoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,15 @@ contract VoucherHub is
VoucherHubStorage storage $ = _getVoucherHubStorage();
$._iexecPoco = iexecPoco;
$._voucherBeacon = voucherBeacon;
//slither-disable-start too-many-digits
// See : https://github.com/crytic/slither/issues/1223
$._voucherCreationCodeHash = keccak256(
abi.encodePacked(
type(VoucherProxy).creationCode, // bytecode
abi.encode($._voucherBeacon) // constructor args
)
);
//slither-disable-end too-many-digits
}

function createVoucherType(
Expand Down
2 changes: 1 addition & 1 deletion slither.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"solc_remaps": "@=node_modules/@",
"filter_paths": "(mocks/|node_modules/)",
"detectors_to_exclude": "pragma,solc-version,assembly,too-many-digits",
"detectors_to_exclude": "pragma,solc-version,assembly",
"solc_args": "--optimize --via-ir"
}

0 comments on commit 5a99207

Please sign in to comment.