Description
contracts/token/src/lib.rs defines both pub fn pause and pub fn unpause twice each:
| Function |
First definition (approx. line) |
Second definition (approx. line) |
pause |
~374 |
~402 |
unpause |
~388 |
~411 |
Rust does not allow duplicate function names in the same impl block. This is a hard compile error — the token contract cannot build in its current state.
The duplicate definitions likely originate from a merge conflict that was incorrectly resolved, or from a refactor where the pause/unpause logic was moved but the originals were not deleted.
Steps to Reproduce
cargo build -p cosmosvote-token
Expected error: error[E0201]: duplicate definitions with name pause``
Acceptance Criteria
Priority
Critical — token contract cannot compile.
Estimated Effort
Small — identify and remove duplicate definitions.
Description
contracts/token/src/lib.rsdefines bothpub fn pauseandpub fn unpausetwice each:pauseunpauseRust does not allow duplicate function names in the same
implblock. This is a hard compile error — the token contract cannot build in its current state.The duplicate definitions likely originate from a merge conflict that was incorrectly resolved, or from a refactor where the pause/unpause logic was moved but the originals were not deleted.
Steps to Reproduce
Expected error:
error[E0201]: duplicate definitions with namepause``Acceptance Criteria
docs/governance-model.md)pause, keeping the correct oneunpause, keeping the correct onecargo build -p cosmosvote-tokensucceeds without errorscargo test -p cosmosvote-tokenpasses all testsdocs/events.mdPriority
Critical — token contract cannot compile.
Estimated Effort
Small — identify and remove duplicate definitions.