You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arcticae
changed the title
Instead of panicking, handle errors and return error code in rust cheat codes
Handle panic_data in Declare (and Invoke)
Jun 28, 2023
Source:
protostar/protostar-rust/src/cheatcodes_hint_processor.rs
Line 156 in 0a0748e
Edit:
Most of the errors should not be recoverable, excluding those with txn execution (which is handled by
panic_data
).Separately, we should consider avoiding having
error_code
in cases which we always return 0Edit2:
Delegated
Invoke
s andCall
s error handling to #2156The text was updated successfully, but these errors were encountered: