Skip to content

Commit

Permalink
ci: disable slither for examples issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Apr 12, 2024
1 parent d4ea674 commit 685061f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/examples/ERC1363Payable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {ERC1363Guardian} from "../presets/ERC1363Guardian.sol";
*/
contract ERC1363Payable is ERC1363Guardian {
// The ERC-1363 token accepted
address private _acceptedToken;
address private immutable _acceptedToken;

// a mapping of each user credit
mapping(address account => uint256) private _credits;
Expand Down Expand Up @@ -80,7 +80,11 @@ contract ERC1363Payable is ERC1363Guardian {
uint256 value,
bytes calldata data
) internal override onlyAcceptedToken {
// slither-disable-start unchecked-transfer
// slither-disable-start arbitrary-send-erc20
IERC20(token).transferFrom(owner, address(this), value);
// slither-disable-end unchecked-transfer
// slither-disable-end arbitrary-send-erc20

_deposit(owner, owner, value, data);
}
Expand Down

0 comments on commit 685061f

Please sign in to comment.