Closed joemonem closed 2 months ago
The changes across the files involve updating the andromeda-crowdfund
package to version 2.0.1
and modifying specific fields in several structures to use Option<String>
, allowing for optional values. This includes updates to the CampaignConfig
and CampaignSummaryResponse
structures, as well as adjustments in the mock_campaign_config
function, ensuring that these fields can now accept None
.
Files | Change Summary |
---|---|
contracts/non-fungible-tokens/.../Cargo.toml |
Version updated from 2.0.0 to 2.0.1 . |
contracts/non-fungible-tokens/.../src/testing/mock_querier.rs |
Modified mock_campaign_config to use Option<String> for title , description , banner , and url fields. |
packages/andromeda-non-fungible-tokens/.../src/crowdfund.rs |
Updated CampaignConfig and CampaignSummaryResponse to allow Option<String> for specific fields and adjusted validation logic. |
tests-integration/tests/crowdfund_app.rs |
Changed initialization of CampaignConfig fields title , description , banner , and url to use Some() . |
sequenceDiagram
participant User
participant CrowdfundApp
participant CampaignConfig
User->>CrowdfundApp: Create Campaign
CrowdfundApp->>CampaignConfig: Initialize with optional fields
CampaignConfig-->>CrowdfundApp: Return Config
CrowdfundApp-->>User: Campaign Created
🐰 In the meadow, changes sprout,
Options blooming, no doubt!
Fields once strict, now they flow,
Flexibility ready to grow!
With a hop and a skip, we cheer,
For a brighter code, oh dear! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This should be included in the changelog
Motivation
Give more flexibility during crowdfund creation.
Implementation
Made title, description, banner, and url optional in
CampaignConfig
and inCampaignSummaryResponse
.Testing
No tests were done or affected.
Version Changes
Crowdfund from 2.0.0 to 2.0.1
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Tests