Summary
The storage key for a creator's holder balance is constructed inline in multiple places across the contract. A shared helper should produce this key consistently so any future key format change only needs to be made in one place.
Scope
- Add
holder_balance_key(creator_id: Address, holder: Address) -> Symbol helper
- Replace all inline holder balance key constructions with the helper
- Add unit tests confirming the helper produces the expected key format for two different creator/holder pairs
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The storage key for a creator's holder balance is constructed inline in multiple places across the contract. A shared helper should produce this key consistently so any future key format change only needs to be made in one place.
Scope
holder_balance_key(creator_id: Address, holder: Address) -> SymbolhelperAcceptance Criteria
ETA: 12 hours
Coordinate on Telegram