Closed PolyProgrammist closed 6 months ago
The recent update involves modifying the supervisor
field in the Sponsorship
and SponsorshipV1
structs, changing its type from AccountId
to String
. This adjustment simplifies the handling of supervisor identifiers within the codebase.
File | Change Summary |
---|---|
src/post/sponsorship.rs |
Changed supervisor field type from AccountId to String in both Sponsorship and SponsorshipV1 structs. |
🐰 In fields of code where structs reside,
A change was made, a simple guide.
FromAccountId
toString
it went,
For clarity and ease, this change is meant.
With strings in place, let code advance,
And bring forth progress, take a chance! 🌟
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
Same PR for devhub.near: https://github.com/NEAR-DevHub/neardevhub-contract/pull/113
Last unsafe_safe_upgrade call to devgovgigs.near: https://pikespeak.ai/transaction-viewer/3oUq3cf4cirUVCDaLscr83askUTQNAtLkCTrzFTouEKf/detailed
PR connected to it: https://github.com/NEAR-DevHub/neardevhub-contract/pull/77
Last unsafe_migrate is close to that block as well. Last contract deploy on Jan 2023.
Summary by CodeRabbit
supervisor
field in sponsorship data fromAccountId
toString
for improved compatibility and readability.