Skip to content

Comments

Remove redundant WeaponTicket from witness_hero exercise#103

Open
alilloig wants to merge 5 commits intomainfrom
alilloig/witness-quick-fix
Open

Remove redundant WeaponTicket from witness_hero exercise#103
alilloig wants to merge 5 commits intomainfrom
alilloig/witness-quick-fix

Conversation

@alilloig
Copy link
Collaborator

@alilloig alilloig commented Feb 12, 2026

Summary

  • Removes the WeaponTicket struct and its two-step purchase flow (mint_weapon_ticket + transfer_weapon_ticket) from the hero module, replacing it with a single attach_weapon call that handles payment inline
  • Updates both tests to use the simplified single-transaction flow
  • Adds a skeleton mint_weapon function signature in the weapon module TODO for students to complete

Test plan

  • sui move test passes in the solution branch (witness_hero/hero/)
  • Both TODOs in the student version remain for students to implement

🤖 Generated with Claude Code

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.

1 participant