Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Deprecated constructions --Low Bug #21

Open
L-KH opened this issue Aug 2, 2019 · 0 comments
Open

Deprecated constructions --Low Bug #21

L-KH opened this issue Aug 2, 2019 · 0 comments

Comments

@L-KH
Copy link

L-KH commented Aug 2, 2019

Deprecated constructions

Deprecated constructions: years, sha3, suicide, throw, and constant functions.

recommendation

Use keccak256 instead of sha3.
Use selfdestruct instead of suicide.
Use revert() instead of throw.
Use view instead of constant for functions.
Use days instead of years.

Links

https://solidity.readthedocs.io/en/latest/contracts.html#view-functions
ethereum/solidity#992
https://solidity.readthedocs.io/en/develop/control-structures.html#error-handling-assert-require-revert-and-exceptions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant