Summary
The sell function should emit a contract event on success, but there is no integration test verifying the event fields. A test should perform a sell and assert the emitted event contains the correct seller, creator, quantity, proceeds, and ledger fields.
Scope
- Set up a holder with 2 keys via buy transactions
- Sell 1 key and extract the contract events from the result meta
- Assert one sell event emitted with fields:
seller, creator_id, quantity, proceeds, ledger
- Assert
proceeds equals the sell price at that supply step minus fees
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The sell function should emit a contract event on success, but there is no integration test verifying the event fields. A test should perform a sell and assert the emitted event contains the correct seller, creator, quantity, proceeds, and ledger fields.
Scope
seller,creator_id,quantity,proceeds,ledgerproceedsequals the sell price at that supply step minus feesAcceptance Criteria
proceedsmatches sell price minus creator and protocol feesledgermatches the transaction ledger numberETA: 12 hours
Coordinate on Telegram