## Overview Write unit tests for the tokenization, voting, dividend, and restriction modules inside `contracts/contrib/`. ## Location All work must be inside `contracts/contrib/src/tests/`. ## Acceptance Criteria - [ ] Tests for `tokenize_asset`: success, already tokenized panic - [ ] Tests for `transfer_tokens`: success, insufficient balance panic, blacklisted address panic - [ ] Tests for `cast_vote`: success, double vote panic, below threshold panic - [ ] Tests for `distribute_dividends` and `claim_dividends`: proportional distribution verified with multiple holders - [ ] Tests for `execute_detokenization`: end-to-end flow from proposal to execution - [ ] All tests pass with `cargo test`
Overview
Write unit tests for the tokenization, voting, dividend, and restriction modules inside
contracts/contrib/.Location
All work must be inside
contracts/contrib/src/tests/.Acceptance Criteria
tokenize_asset: success, already tokenized panictransfer_tokens: success, insufficient balance panic, blacklisted address paniccast_vote: success, double vote panic, below threshold panicdistribute_dividendsandclaim_dividends: proportional distribution verified with multiple holdersexecute_detokenization: end-to-end flow from proposal to executioncargo test