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 CrowdFunding.sol #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion web3/contracts/CrowdFunding.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,13 @@ contract CrowdFunding {

return allCampaigns;
}
}
}

/*CODE EXPLANATION:
This is a smart contract written in the Solidity programming language for a crowdfunding platform on the Ethereum blockchain.
It allows users to create campaigns with a title, description, target amount, deadline, and image. It also allows users to donate
to campaigns and provides a function to view the list of all campaigns and their details, as well as the list of donators and the amounts they donated.
The contract uses a mapping to store the campaigns, with each campaign being assigned a unique identifier (ID). The number of campaigns is stored in the
"numberOfCampaigns" variable.

*/