diff --git a/noir-projects/noir-contracts/contracts/test/counter_contract/src/main.nr b/noir-projects/noir-contracts/contracts/test/counter_contract/src/main.nr index be84b8f750a6..2affe6ca63d9 100644 --- a/noir-projects/noir-contracts/contracts/test/counter_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/test/counter_contract/src/main.nr @@ -137,9 +137,6 @@ pub contract Counter { } // docs:end:txe_test_increment - // TODO(#13221): I had to comment out all the env.advance_block_by(1) and sync_notes() calls because that triggered - // an issue with how state is committed. The calls to advance_block_by(1) seems to have always been unnecessary - // in this test but anyway we should fix the issue and try to get the block advancing working here. #[test] unconstrained fn extended_incrementing_and_decrementing() { let initial_value = 5; @@ -159,7 +156,7 @@ pub contract Counter { ); // Checking that the note was discovered from private logs - // env.advance_block_by(1); + env.advance_block_by(1); sync_notes(); env.impersonate(contract_address); let counter_slot = Counter::storage_layout().counters.slot; @@ -182,7 +179,7 @@ pub contract Counter { assert(get_counter(owner) == 7); // Checking that the note was discovered from private logs - // env.advance_block_by(1); + env.advance_block_by(1); sync_notes(); let notes: BoundedVec = view_notes(owner_storage_slot, options); @@ -198,7 +195,7 @@ pub contract Counter { assert(notes.len() == 4); // Checking that the note was discovered from private logs - // env.advance_block_by(1); + env.advance_block_by(1); sync_notes(); let notes: BoundedVec = view_notes(owner_storage_slot, options); @@ -213,7 +210,7 @@ pub contract Counter { assert(notes.len() == 4); // Checking that the note was discovered from private logs - // env.advance_block_by(1); + env.advance_block_by(1); sync_notes(); let notes: BoundedVec = view_notes(owner_storage_slot, options);