Skip to content

Commit

Permalink
chore(sol-types): make PanicKind non_exhaustive (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Dec 16, 2023
1 parent dfc205b commit 88788e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/sol-types/src/types/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ impl Panic {
/// [Solidity definition]: https://github.com/ethereum/solidity/blob/9eaa5cebdb1458457135097efdca1a3573af17c8/libsolutil/ErrorCodes.h#L25-L37
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(u32)]
#[non_exhaustive]
pub enum PanicKind {
// Docs extracted from the Solidity definition and documentation, linked above.
/// Generic / unspecified error.
Expand Down

0 comments on commit 88788e8

Please sign in to comment.