Last active
November 1, 2022 08:58
-
-
Save ac12644/39d65b9e9d2df689f367dfe86af63cdf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Fundraiser is Ownable { | |
... | |
string public name; | |
string public image; | |
string public description; | |
address payable public beneficiary; | |
uint256 public goalAmount; | |
uint256 public totalDonations; | |
uint256 public donationsCount; | |
constructor( | |
string memory _name, | |
string memory _image, | |
string memory _description, | |
uint256 _goalAmount, | |
address payable _beneficiary, | |
address _custodian | |
) public { | |
name = _name; | |
image = _image; | |
description = _description; | |
goalAmount = _goalAmount; | |
beneficiary = _beneficiary; | |
_transferOwnership(_custodian); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment