crytic / tealer

Static Analyzer for Teal
GNU Affero General Public License v3.0
62 stars 14 forks source link

Update txn field analysis to use comparison-return pattern #136

Closed S3v3ru5 closed 1 year ago

S3v3ru5 commented 1 year ago
txn RekeyTo
global ZeroAddress
==
return

^Result of comparison is directly used as the return value. The comparison's result should be True for the successful execution of the contract implying that RekeyTo should have ZeroAddress.

This PR adds support to collect information from validations using the pattern Return(...).

S3v3ru5 commented 1 year ago

Builds on #134