Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jul 26, 2024
1 parent 3379e4e commit b8285b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ pub fn felt252_to_bytes(felt: felt252) -> ByteArray {
break;
}

let byte_value: u8 = (remaining % 0x100).try_into().unwrap(); // 256
let byte_value = remaining % 0x100; // 256

result.append_byte(byte_value);
result.append_byte(byte_value.try_into().unwrap());

remaining /= 0x100; // 256
};
Expand Down

0 comments on commit b8285b3

Please sign in to comment.