Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pallas-hardano/src/display/haskell_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,8 @@ impl HaskellDisplay for ValidityInterval {
fn to_haskell_str(&self) -> String {
format!(
"(ValidityInterval {{invalidBefore = {}, invalidHereafter = {}}})",
&self.invalid_before.as_slot_no(),
&self.invalid_hereafter.as_slot_no()
self.invalid_before.as_slot_no(),
self.invalid_hereafter.as_slot_no()
)
}
}
Expand Down Expand Up @@ -2549,7 +2549,9 @@ impl AsIPv6 for Nullable<Bytes> {
Nullable::Some(b) => {
let data: [u8; 16] = b
.deref()
.chunks_exact(4)
.as_chunks::<4>()
.0
.iter()
.flat_map(|x| {
let mut y = x.to_vec();
y.reverse();
Expand Down
8 changes: 4 additions & 4 deletions pallas-math/src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ mod tests {
(&one - &threshold_b).to_string(),
expected_threshold_b,
"(1 - f) *** b failed to match! - (1 - f)={}, b={}",
&c,
&b
c,
b
);

// do Taylor approximation for
Expand All @@ -467,14 +467,14 @@ mod tests {
if a < threshold && res.estimation != ExpOrdering::LT {
panic!(
"wrong result should be leader {} should be more like {}",
&temp, threshold
temp, threshold
);
}

if a >= threshold && res.estimation != ExpOrdering::GT {
panic!(
"wrong result should not be leader {} should be more like {}",
&temp, threshold
temp, threshold
);
}

Expand Down
6 changes: 5 additions & 1 deletion pallas-network2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ byteorder.workspace = true
socket2.workspace = true
thiserror.workspace = true
hex.workspace = true
cddl = { version = "0.10", optional = true }
# Pinned: cddl 0.10.7 regressed map entries whose key is a type-rule reference
# (`bitmaps = { * word16 => word64 }` with `word16 = uint`), rejecting every key
# as unexpected. Inline key types still validate, named ones do not. Still broken
# on cddl master as of 2026-08-25. Relax once a release carries the fix.
cddl = { version = "=0.10.6", optional = true }

[features]
emulation = ["tokio", "rand"]
Expand Down
2 changes: 1 addition & 1 deletion pallas-validate/src/phase1/alonzo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ fn check_minting(tx_body: &TransactionBody, mtx: &Tx) -> ValidationResult {
None => Vec::new(),
Some(plutus_v1_script_wits) => plutus_v1_script_wits.clone(),
};
for (policy, _) in minted_value.iter() {
for policy in minted_value.keys() {
if native_script_wits
.iter()
.all(|native_script| compute_native_script_hash(native_script) != *policy)
Expand Down
2 changes: 1 addition & 1 deletion pallas-validate/src/phase1/babbage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ fn check_minting(tx_body: &TransactionBody, mtx: &Tx, utxos: &UTxOs) -> Validati

dbg!(&all_scripts_wits);

for (policy, _) in minted_value.iter() {
for policy in minted_value.keys() {
if !all_scripts_wits.contains(policy) {
return Err(PostAlonzo(MintingLacksPolicy(*policy)));
}
Expand Down
2 changes: 1 addition & 1 deletion pallas-validate/src/phase1/conway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ fn check_minting(tx_body: &TransactionBody, mtx: &Tx, utxos: &UTxOs) -> Validati
.chain(ref_scripts)
.collect();

for (policy, _) in minted_value.iter() {
for policy in minted_value.keys() {
if !all_scripts_wits.contains(policy) {
return Err(PostAlonzo(MintingLacksPolicy(*policy)));
}
Expand Down
2 changes: 1 addition & 1 deletion pallas-validate/src/phase1/shelley_ma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ fn check_minting(tx_body: &TransactionBody, mtx: &Tx) -> ValidationResult {
.map(|x| x.clone().unwrap())
.collect(),
};
for (policy, _) in minted_value.iter() {
for policy in minted_value.keys() {
if native_script_wits
.iter()
.all(|script| compute_script_hash(script) != *policy)
Expand Down
Loading