Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
57 stars 35 forks source link

Fix counter notify #411

Closed rasmus-kirk closed 6 months ago

rasmus-kirk commented 7 months ago

Purpose

It seems that the counter-notify example simply made the wrong check in the test, note the following comment:

This will be false if the reentrancy has occurred

I added an enum to make the code clearer and fixed the assertion.

Checklist