Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the problem about using libraries: Safemath and String #1

Open
ericlewis966 opened this issue Jun 11, 2022 · 0 comments
Open

the problem about using libraries: Safemath and String #1

ericlewis966 opened this issue Jun 11, 2022 · 0 comments

Comments

@ericlewis966
Copy link
Owner

In this project, I used Safemath for all arithmetical calculations in each smart contract.
But to be honestly, we don't have to use Safemath in the 0.8.0+ versions of smart contract.
Cause in this version of smart contracts are supporting built-in funtionalities to prevent the underflow and overflow issues.
If someone keep using Safemath in 0.8.0+ version of solidity smart contracts, It has bad effect for the memory using and the security completion.

On the countary, I used customized uintToString() function in some functions, but It also unnecessary.
Because the String library is currently supporting toString() function for all data types.

Hope you are using this project with right concept and optimized env.

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

No branches or pull requests

1 participant