You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In solc_to_k.py, Constructor and Method are both child classes of Contract. However, both have the contract_up_to_date function, whereas the Contract class doesn't.
This can cause some redundancy, such as the logic introduced in #735 to determine whether the contract's digest is outdated1.
we might need to factor out the contract field, although not necessarily.
Footnotes
Note that the logic introduced in Add --remove-old-proofs command #735 showcased above is not more inefficient than doing a single lookup per contract since, according to the Python docs, any is evaluated lazily. But it does result in a more verbose/redundant syntax. ↩
The text was updated successfully, but these errors were encountered:
In
solc_to_k.py
,Constructor
andMethod
are both child classes ofContract
. However, both have thecontract_up_to_date
function, whereas theContract
class doesn't.This can cause some redundancy, such as the logic introduced in #735 to determine whether the contract's digest is outdated1.
In this particular case, instead of
we could do something like
Taking into account that the digest files look like this:
we might need to factor out the
contract
field, although not necessarily.Footnotes
Note that the logic introduced in Add
--remove-old-proofs
command #735 showcased above is not more inefficient than doing a single lookup per contract since, according to the Python docs,any
is evaluated lazily. But it does result in a more verbose/redundant syntax. ↩The text was updated successfully, but these errors were encountered: