Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
chineseifc
Solidity-by-Example
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Solidity-by-Example
Public
Notifications
You must be signed in to change notification settings
Fork
0
(
0
)
Star
0
(
0
)
You must be signed in to star a repository
About
No description, website, or topics provided.
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
93 Commits
93 Commits
Folders and files
Name
Name
Last commit message
Last commit date
DeFi
DeFi
Tests
Tests
应用
应用
黑客
黑客
ABI Decode
ABI Decode
Applications
Applications
Array
Array
Call
Call
Calling Other Contract
Calling Other Contract
Calling Parent Contracts
Calling Parent Contracts
Constants.sol
Constants.sol
Constructor
Constructor
Contract that Creates other Contracts
Contract that Creates other Contracts
Data Locations - Storage, Memory and Calldata
Data Locations - Storage, Memory and Calldata
Delegatecall
Delegatecall
Enum
Enum
Error
Error
Ether and Wei
Ether and Wei
Events
Events
Fallback
Fallback
First Application.sol
First Application.sol
For and While Loop
For and While Loop
Function
Function
Function Modifier
Function Modifier
Function Selector
Function Selector
Gas
Gas
Hashing with Keccak256
Hashing with Keccak256
Hello World.sol
Hello World.sol
Immutable.sol
Immutable.sol
Import
Import
Inheritance
Inheritance
Interface
Interface
Library
Library
Mapping
Mapping
Payable
Payable
Primitive Data Types.sol
Primitive Data Types.sol
Reading and Writing to a State Variable
Reading and Writing to a State Variable
Sending Ether (transfer, send, call)
Sending Ether (transfer, send, call)
Shadowing Inherited State Variables
Shadowing Inherited State Variables
Structs
Structs
Try Catch
Try Catch
Variables.sol
Variables.sol
Verifying Signature
Verifying Signature
View and Pure Functions
View and Pure Functions
Visibility
Visibility
ifeles
ifeles
ifelse
ifelse
View all files
About
No description, website, or topics provided.
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.