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
Both .min and .max result in an error.
Expected: Using type(NameOfEnum).min and type(NameOfEnum).max you can get the smallest and respectively largest value of the given enum.
Possibly related to tracking issue of better support for Enums. #6623
➜ `enum State {
Default,
Staging,
Buy,
Sell,
Liquidated
}
➜ type(State).max
The application panicked (crashed).
Message: called Option::unwrap() on a None value
Location: crates/chisel/src/executor.rs:866
Component
Chisel
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (a5efe4f 2024-02-08T00:15:08.598684835Z)
What command(s) is the bug in?
No response
Operating System
Linux
Describe the bug
Both
.min
and.max
result in an error.Expected:
Using type(NameOfEnum).min and type(NameOfEnum).max you can get the smallest and respectively largest value of the given enum.
Possibly related to tracking issue of better support for Enums. #6623
➜ type(State).max
The application panicked (crashed).
Message: called
Option::unwrap()
on aNone
valueLocation: crates/chisel/src/executor.rs:866
This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The text was updated successfully, but these errors were encountered: