CanCloseAccount detector finds execution paths that allow the txn CloseRemainderTo field to have any address. CloseRemainderTo field can only be set for Payment type transactions.
If the contract asserts that txn is not a Payment type txn, it is not vulnerable to CanCloseAccount.
And The CanCloseAsset detector which checks if the AssetCloseTo field can have any address. The AssetCloseTo field can only be set for AssetTransfer type transactions.
This PR supports using the transaction type information while enumerating the vulnerable execution paths.
CanCloseAccount detector finds execution paths that allow the txn CloseRemainderTo field to have any address. CloseRemainderTo field can only be set for Payment type transactions. If the contract asserts that txn is not a Payment type txn, it is not vulnerable to CanCloseAccount.
And The CanCloseAsset detector which checks if the AssetCloseTo field can have any address. The AssetCloseTo field can only be set for AssetTransfer type transactions.
This PR supports using the transaction type information while enumerating the vulnerable execution paths.