Skip to content

Commit c824cde

Browse files
committed
chore: remove todo for event on allowance violation
We decided to remove this because it doesn't really make sense.
1 parent 4799797 commit c824cde

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clarity/src/vm/functions/post_conditions.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ pub fn special_restrict_assets(
208208
// - Emit an event
209209
if let Some(violation_index) = check_allowances(&asset_owner, &allowances, asset_maps)? {
210210
env.global_context.roll_back()?;
211-
// TODO: Emit an event about the allowance violation
212211
return Value::error(Value::UInt(violation_index));
213212
}
214213

@@ -293,7 +292,6 @@ pub fn special_as_contract(
293292
Ok(None) => {}
294293
Ok(Some(violation_index)) => {
295294
nested_env.global_context.roll_back()?;
296-
// TODO: Emit an event about the allowance violation
297295
return Value::error(Value::UInt(violation_index));
298296
}
299297
Err(e) => {

0 commit comments

Comments
 (0)