mythril icon indicating copy to clipboard operation
mythril copied to clipboard

feat: full support for adding constraint to the issuing transactions

Open yxliang01 opened this issue 4 years ago • 3 comments

Description

Nowadays, we already have options like --attacker-address to add constraint to the transactions can be issued by laser. However, such support is not complete, e.g. can't specify constraint on the value of transactions. This feature would be very useful if we have some knowledge to direct the search to be more efficient.

yxliang01 avatar Apr 08 '20 15:04 yxliang01

At this moment you can use require to handle such cases, like require(msg.value<limit).

norhh avatar Apr 08 '20 19:04 norhh

Thanks @norhh To reconfirm, require acts like adding preconditions to the symbolic exploration? What will mythril do if the require condition is provably false?

yxliang01 avatar Apr 09 '20 06:04 yxliang01

If any path violates the requirement, the path is terminated.

norhh avatar Apr 09 '20 14:04 norhh