WIP: (feat): Boost Campaigns module
3/4 discussions resolved
added 1 commit
- ad87348f - (proto): Create campaign normalization and validation
- Resolved by Emiliano Balbuena
- Resolved by Emiliano Balbuena
- Last updated by Emiliano Balbuena
118 throw new CampaignException('Campaign should have a budget'); 119 } 120 121 // TODO: Validate offchain balance, or set as pending for onchain 122 123 // Generate URN 124 125 $guid = $this->guid->build(); 126 $urn = "urn:campaign:{$guid}"; 127 128 $campaign 129 ->setUrn($urn); 130 131 // Normalize and validate entity URNs 132 133 $entityUrns = array_values(array_unique(array_filter(Text::buildArray($campaign->getEntityUrns())))); - Owner
not sure what we can do here to avoid function overload changed this line in version 3 of the diff
- Developer
Awful, eh? I was thinking on creating a
Collection
class as a wrapper to arrays. Pretty much likeResponse
but without any paging tokens, etc references.
- Resolved by Emiliano Balbuena