Skip to content

Conversation

@V-Vaal
Copy link
Contributor

@V-Vaal V-Vaal commented Dec 16, 2025

Summary

This PR adds support for long badge descriptions by storing them as bytes,
while preserving full retrocompatibility.

What’s included

  • V1 public functions and events remain unchanged
  • Internal storage migrated to bytes
  • New V2 API added:
    • createBadgeV2
    • getBadgeV2
    • getBadgeAtV2
    • BadgeCreatedV2 event
  • Existing integrations continue to work without redeployment

Tests

  • All existing V1 tests pass unchanged
  • New tests added to validate:
    • long descriptions via V2
    • V1/V2 interoperability

Closes #154

Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

No need for retrocompatibility here

@V-Vaal V-Vaal force-pushed the fix/154-badge-description-bytes branch from b2c62c5 to df7a93e Compare December 16, 2025 13:24
@V-Vaal V-Vaal changed the title fix(#154): support long badge descriptions (retrocompat included) fix(#154): support long badge descriptions Dec 16, 2025
Copy link
Contributor

@joelamouche joelamouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work 🥳

@joelamouche joelamouche merged commit 0177d56 into TheSoftwareDevGuild:main Dec 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Description field of badges should be bytes not bytes32 - smart contracts

2 participants