Skip to content

Conversation

@devacc8
Copy link

@devacc8 devacc8 commented Jan 17, 2026

Summary

Updated outdated Solidity pragma statements in tutorial code examples to version 0.8.20.

Changes

File Old Version New Version
docs/learn/contracts-and-basic-functions/hello-world-step-by-step.mdx 0.8.17 0.8.20
docs/learn/hardhat/hardhat-forking/hardhat-forking.mdx 0.8.9 0.8.20
docs/learn/mappings/mappings-sbs.mdx 0.8.17 0.8.20

Why 0.8.20?

  • Includes important compiler optimizations
  • Better security features
  • Aligns with current best practices
  • Still widely supported by tooling (Hardhat, Foundry, Remix)

Closes #815

Updated pragma statements in tutorial code examples:
- hello-world-step-by-step.mdx: 0.8.17 -> 0.8.20
- hardhat-forking.mdx: 0.8.9 -> 0.8.20
- mappings-sbs.mdx: 0.8.17 -> 0.8.20

Solidity 0.8.20+ includes important optimizations and security improvements.

Closes base#815
@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

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

Successfully merging this pull request may close these issues.

Outdated examples in the documentation

2 participants