diff --git a/packages/hardhat/contracts/DonationContract.sol b/packages/hardhat/contracts/DonationContract.sol index f1d734d..c6996de 100644 --- a/packages/hardhat/contracts/DonationContract.sol +++ b/packages/hardhat/contracts/DonationContract.sol @@ -36,7 +36,9 @@ contract DonationContract { event CampaignCreated( uint campaignId, address campaignOwner, - string campaignName + string campaignName, + uint goalAmount, + address goalToken ); event CampaignClosed(uint campaignId); event DonationReceived( diff --git a/packages/subgraph/CampaignsQuery.graphql b/packages/subgraph/CampaignsQuery.graphql index 4287c28..a72ebe4 100644 --- a/packages/subgraph/CampaignsQuery.graphql +++ b/packages/subgraph/CampaignsQuery.graphql @@ -1,8 +1,10 @@ -query CampaignsQuery {{ - campaigns(first: 5) { - campaignId, - campaignOwner, - isLive, - campaignName +query CampaignsQuery { + { + campaigns(first: 5) { + campaignId, + campaignOwner, + isLive, + campaignName + } } -}} \ No newline at end of file +} \ No newline at end of file