Skip to content

Commit 628eeb1

Browse files
committed
Renamed the function a bit for readability
1 parent 4e44f9a commit 628eeb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/src/plutus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl PlutusList {
475475
}
476476
}
477477

478-
pub(crate) fn clone_definite(&self) -> Self {
478+
pub(crate) fn clone_as_definite(&self) -> Self {
479479
Self {
480480
elems: self.elems.clone(),
481481
definite_encoding: Some(true),

rust/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ pub fn hash_script_data(redeemers: &Redeemers, cost_models: &Costmdls, datums: O
921921
*/
922922
buf.extend(redeemers.to_bytes());
923923
if let Some(d) = &datums {
924-
buf.extend(d.clone_definite().to_bytes());
924+
buf.extend(d.clone_as_definite().to_bytes());
925925
}
926926
buf.extend(cost_models.language_views_encoding());
927927
}

0 commit comments

Comments
 (0)