Skip to content

Commit

Permalink
chore: better fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Nov 12, 2024
1 parent 894758d commit 6474908
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/uplc/src/machine/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ impl<'a> Machine<'a> {

new.assign(computation);

let mut arg1 = integer_to_be_bytes(self.arena, new, rug::integer::Order::MsfBe);
let mut arg1 = integer_to_bytes(self.arena, new, rug::integer::Order::MsfBe);

if size_scalar > arg1.len() {
let diff = size_scalar - arg1.len();
Expand Down Expand Up @@ -1597,7 +1597,7 @@ impl<'a> Machine<'a> {

new.assign(computation);

let mut arg1 = integer_to_be_bytes(self.arena, new, rug::integer::Order::MsfBe);
let mut arg1 = integer_to_bytes(self.arena, new, rug::integer::Order::MsfBe);

if size_scalar > arg1.len() {
let diff = size_scalar - arg1.len();
Expand Down Expand Up @@ -1857,9 +1857,9 @@ impl<'a> Machine<'a> {
}

let mut bytes = if endianness {
integer_to_be_bytes(self.arena, input, rug::integer::Order::MsfBe)
integer_to_bytes(self.arena, input, rug::integer::Order::MsfBe)
} else {
integer_to_be_bytes(self.arena, input, rug::integer::Order::LsfLe)
integer_to_bytes(self.arena, input, rug::integer::Order::LsfLe)
};

if !size.is_zero() && bytes.len() > size_unwrapped {
Expand Down Expand Up @@ -1920,7 +1920,7 @@ impl<'a> Machine<'a> {
}
}

fn integer_to_be_bytes<'a>(
fn integer_to_bytes<'a>(
arena: &'a Bump,
num: &'a Integer,
order: rug::integer::Order,
Expand Down

0 comments on commit 6474908

Please sign in to comment.