Skip to content

Instantly share code, notes, and snippets.

@ac12644
Last active November 1, 2022 08:58
Show Gist options
  • Save ac12644/39d65b9e9d2df689f367dfe86af63cdf to your computer and use it in GitHub Desktop.
Save ac12644/39d65b9e9d2df689f367dfe86af63cdf to your computer and use it in GitHub Desktop.
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