Skip to content

Commit

Permalink
Force Ord on Ticker.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium committed Aug 13, 2024
1 parent 9a0113c commit c79178a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/polymesh-api-codegen/src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ mod v14 {
#[cfg_attr(all(feature = "ink", feature = "std"), derive(::ink::storage::traits::StorageLayout))]
};
let ink_id_derives = quote! {
#[derive(Copy, Default, Ord)]
#[derive(Copy, Default)]
#[cfg_attr(all(feature = "ink", feature = "std"), derive(::ink::storage::traits::StorageLayout))]
};
let custom_derives = HashMap::from_iter(
Expand Down Expand Up @@ -355,6 +355,8 @@ mod v14 {
v2_weights: false,
api_interface,
};
// Manually enable `Ord` for `Ticker`.
gen.ord_types.insert("Ticker".into());
// Try a limited number of times to mark all types needing the `Ord` type.
let mut ord_type_ids = HashSet::new();
for _ in 0..10 {
Expand Down

0 comments on commit c79178a

Please sign in to comment.