The MissingFeeCheck, CanCloseAccount, CanCloseAsset detectors are updated to work on group transactions. The tests are updated to test these detectors as well.
The PR also adds support for use of user-given transaction type in the detectors.
The contracts are only vulnerable to CanCloseAccount only if the logic-sig is executed in a Payment transaction. The detector checks if the type of the transaction is Payment or not and only detects if the transaction is payment.
Note: The CanCloseAccount and CanCloseAsset detectors do use the transaction types before this PR. however, they relied on the information computed by tealer instead of the user-given configuration.
The
MissingFeeCheck
,CanCloseAccount
,CanCloseAsset
detectors are updated to work on group transactions. The tests are updated to test these detectors as well.The PR also adds support for use of
user-given
transaction type in the detectors.The contracts are only vulnerable to
CanCloseAccount
only if the logic-sig is executed in a Payment transaction. The detector checks if the type of the transaction is Payment or not and only detects if the transaction is payment.Note: The
CanCloseAccount
andCanCloseAsset
detectors do use the transaction types before this PR. however, they relied on the information computed by tealer instead of the user-given configuration.