Skip to content

Commit d94788a

Browse files
committed
fix: format code
1 parent de3dd65 commit d94788a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stackslib/src/clarity_vm/tests/events.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,17 @@ fn test_emit_stx_burn_nok() {
275275
fn test_emit_nested_print_nok() {
276276
// The original code had two problems:
277277
// 1. emit-event-ok called emit-event-nok without handling the (err u1)
278-
// response, causing "UncheckedIntermediaryResponses" error during
278+
// response, causing "UncheckedIntermediaryResponses" error during
279279
// contract initialization.
280-
// 2. The test incorrectly expected (ok u1) and 1 event, but when a public
281-
// function returns an error, the entire transaction rolls back and no
280+
// 2. The test incorrectly expected (ok u1) and 1 event, but when a public
281+
// function returns an error, the entire transaction rolls back and no
282282
// events are emitted.
283283
//
284284
// Fixed by:
285285
// - Adding try! to properly handle the error response from emit-event-nok.
286-
// - Adding an if statement to make both code paths valid for contract
286+
// - Adding an if statement to make both code paths valid for contract
287287
// initialization.
288-
// - Updating test expectations to match actual behavior: (err u1) and 0
288+
// - Updating test expectations to match actual behavior: (err u1) and 0
289289
// events.
290290
//
291291
// This test demonstrates that when a public function returns an error,
@@ -312,7 +312,7 @@ fn test_emit_nested_print_nok() {
312312
// try! propagates the error from emit-event-nok, so emit-event-ok returns (err u1).
313313
assert_eq!(value, Value::error(Value::UInt(1)).unwrap());
314314
// No events are emitted because when a public function returns an error,
315-
// Clarity rolls back the entire transaction, discarding all side effects
315+
// Clarity rolls back the entire transaction, discarding all side effects
316316
// including print statements.
317317
assert_eq!(events.len(), 0);
318318
}

0 commit comments

Comments
 (0)