When validating if a @view/@pure function writes to state in _get_target, it is only validated that the location isn't STORAGE. In cancun, it should also check if the location is TRANSIENT. We didn't find this to be currently exploitable because this is caught by the semantic analyzer, but if the check in get_target is still to be used, it might be a good idea to fix it.
When validating if a
@view
/@pure
function writes to state in_get_target
, it is only validated that the location isn'tSTORAGE
. In cancun, it should also check if the location isTRANSIENT
. We didn't find this to be currently exploitable because this is caught by the semantic analyzer, but if the check inget_target
is still to be used, it might be a good idea to fix it.