Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 473 Bytes

elevator_complete.md

File metadata and controls

4 lines (3 loc) · 473 Bytes

You can use the view function modifier on an interface in order to prevent state modifications. The pure modifier also prevents functions from modifying the state. Make sure you read Solidity's documentation and learn its caveats.

An alternative way to solve this level is to build a view function which returns different results depends on input data but don't modify state, e.g. gasleft().