Description
lib/contract.ts is the largest untested file in lib/ — it wraps every RPC/contract call the frontend makes (mock-mode and live), but has zero unit test coverage.
Location
lib/contract.ts
Task
Add unit tests for the mock-mode code paths at minimum (simulate, submit, poll helpers), mocking fetch/RPC calls as needed. Live-network paths can be covered incrementally.
Good for contributors because
High-value coverage gap — this file backs nearly every write operation in the app.
Description
lib/contract.tsis the largest untested file inlib/— it wraps every RPC/contract call the frontend makes (mock-mode and live), but has zero unit test coverage.Location
lib/contract.tsTask
Add unit tests for the mock-mode code paths at minimum (simulate, submit, poll helpers), mocking
fetch/RPC calls as needed. Live-network paths can be covered incrementally.Good for contributors because
High-value coverage gap — this file backs nearly every write operation in the app.