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

Update ERC-20 walk-through for Solidity 0.8.0+ and SafeMath context #14909

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

M3dython
Copy link

This PR addresses outdated explanations in the ERC-20 contract walk-through to align with modern Solidity practices:

  • Constructor Visibility: Added a comment clarifying that public is implicit in Solidity ≥0.7.0.
  • SafeMath Clarification: Updated the SafeMath library explanation to reflect that it is unnecessary in Solidity ≥0.8.0 due to built-in overflow checks.

These changes ensure the documentation accurately reflects current best practices and avoids confusion for developers using newer Solidity versions.

Addresses outdated explanations in the ERC-20 contract walk-through to align with modern Solidity practices:  
Constructor Visibility: Added a comment clarifying that `public` is implicit in Solidity ≥0.7.0.  
SafeMath Clarification: Updated the SafeMath library explanation to reflect that it is unnecessary in Solidity ≥0.8.0 due to built-in overflow checks.
@github-actions github-actions bot added the content 🖋️ This involves copy additions or edits label Feb 14, 2025
Copy link

netlify bot commented Feb 14, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 8f69539
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/67af99a396f9360008bccdf8
😎 Deploy Preview https://deploy-preview-14909--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 43 (🔴 down 8 from production)
Accessibility: 95 (no change from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 98 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant