Skip to content

Commit

Permalink
regen types
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Sep 2, 2024
1 parent d9858ea commit d99b7c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neutron-sdk/src/proto_types/ibc/core/channel/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,16 +415,16 @@ impl Order {
pub fn as_str_name(&self) -> &'static str {
match self {
Order::NoneUnspecified => "ORDER_NONE_UNSPECIFIED",
Order::Unordered => "OrderUnordered",
Order::Ordered => "OrderOrdered",
Order::Unordered => "ORDER_UNORDERED",
Order::Ordered => "ORDER_ORDERED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ORDER_NONE_UNSPECIFIED" => Some(Self::NoneUnspecified),
"OrderUnordered" => Some(Self::Unordered),
"OrderOrdered" => Some(Self::Ordered),
"ORDER_UNORDERED" => Some(Self::Unordered),
"ORDER_ORDERED" => Some(Self::Ordered),
_ => None,
}
}
Expand Down

0 comments on commit d99b7c2

Please sign in to comment.