improve test #809
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
name: scanERC2771ForMsgSender | |
on: [push] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- run: test "$(grep msg.sender contracts/Token.sol contracts/Crowdinvesting.sol contracts/FeeSettings.sol contracts/AllowList.sol |wc -l)" -eq 0 && test "$(grep msg.data contracts/Token.sol contracts/Crowdinvesting.sol contracts/FeeSettings.sol contracts/AllowList.sol |wc -l)" -eq 0 | |
# these contracts inherit from ERC2771Context and may not contain msg.sender or msg.data. Instead, they must use _msgSender() and _msgData() |