You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add three consistency tests to the creator-earnings contract:
- test_snapshot_restore_consistency: deposit, withdraw, re-deposit restores
the internal balance to the recorded mid-state snapshot
- test_sequential_deposits_accumulate_consistently: repeated deposits sum
correctly and a full withdrawal returns balance to zero
- test_multi_creator_balances_independent: operations on one creator do not
affect another creator's balance snapshot
Also fixes a pre-existing compile error in content-likes: missing
`contracttype` import and invalid `panic_with_error!` string literal
(replaced with `Error::AlreadyInitialized`).
Applies cargo fmt to pre-existing formatting violations across
content-access, content-likes, subscription, test-consumer, and treasury.
Closes#944
0 commit comments