Skip to content

Conversation

@anim001k
Copy link

@anim001k anim001k commented Aug 9, 2025

Description

Fixed a potential crash when removing temporary .wat files during WASM compilation. The previous implementation used .unwrap() which could cause the entire compilation process to panic if file removal failed due to permissions, file locks, or other filesystem issues.

🔧 Changes

  • File: circom/src/compilation_user.rs
  • Line: 117
  • Before: std::fs::remove_file(&config.wat_file).unwrap();
  • After: Safe removal with warning message instead of panic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant