Skip to content

Commit

Permalink
[WEEKLY RELEASE] Downgrade primitive-types (#3930)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinI authored Dec 5, 2024
1 parent 2292e5d commit ecfd22a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
28 changes: 8 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ derive_more = { version = "1.0" }
digest = "0.10"
either = "1.13"
espresso-systems-common = { git = "https://github.com/espressosystems/espresso-systems-common", tag = "0.4.1" }
primitive-types = { version = "0.13.1", default-features = false, features = [
primitive-types = { version = "0.12.2", default-features = false, features = [
"serde",
] }
futures = { version = "0.3", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion crates/hotshot-stake-table/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ pub trait ToFields<F: Field> {
/// convert a U256 to a field element.
pub(crate) fn u256_to_field<F: PrimeField>(v: &U256) -> F {
let mut bytes = vec![0u8; 32];
v.write_as_little_endian(&mut bytes);
v.to_little_endian(&mut bytes);
F::from_le_bytes_mod_order(&bytes)
}

0 comments on commit ecfd22a

Please sign in to comment.