Closed PolyProgrammist closed 6 months ago
The recent update involves modifying the data type of the supervisor
field in the Sponsorship
and SponsorshipV1
structs from AccountId
to String
. This change simplifies the representation of supervisor identities, potentially enhancing flexibility and ease of integration in diverse environments.
File Path | Change Summary |
---|---|
.../post/sponsorship.rs |
Changed supervisor field type from AccountId to String in Sponsorship and SponsorshipV1 structs. |
🐇🌟 In the code where bytes once stood, Strings now flow, as they should. A rabbit hopped through fields so wide, Changing IDs with a joyful stride. Hop, skip, a code flip—how grand! A simpler trace through data's land. 🌼🚀
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?
See devgovgigs branch
When trying to get post 606
The error occurs:
Note: add_post transaction
Here is why:
So before the change it was possible to add a post with empty supervisor:
After the change, it became invalid
So, in this PR supervisor field's type is changed from AccountId to simple String. So that there is no type check. It does not break anything. And I don't provide migration as Sponsorship is deprecated
Summary by CodeRabbit