Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: transfers with .call excluded from warning as low level code
- Loading branch information
1 parent
a2b8ea3
commit 254b120
Showing
4 changed files
with
73 additions
and
9 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 |
---|---|---|
@@ -1 +1,11 @@ | ||
module.exports = ['msg.sender.call(code);', 'a.callcode(test1);', 'a.delegatecall(test1);'] | ||
const WARN_LOW_LEVEL_CODES = [ | ||
'anyAddress.call(code);', | ||
'a.callcode(test1);', | ||
'a.delegatecall(test1);', | ||
] | ||
const ALLOWED_LOW_LEVEL_CODES = [ | ||
'anyAddress.call{value: 1 ether}("");', | ||
'anyAddress.call.value(code)();', | ||
] | ||
|
||
module.exports = [WARN_LOW_LEVEL_CODES, ALLOWED_LOW_LEVEL_CODES] |
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