Skip to content

Commit

Permalink
fix: vec_to_bytes_le function
Browse files Browse the repository at this point in the history
  • Loading branch information
Draply authored and 0x5ea000000 committed Sep 12, 2024
1 parent 5f9c254 commit df02eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/sources/bytes.move
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module lib_addr::bytes {
let bytes = to_bytes(v);

// count (length) bytes to trim
let count = if (length(v) < 256) 1 else 2;

let len = length(&bytes);

let count = len % 32 ;
len = len - count;
let i = 0;
if (count == 1) {
Expand Down

0 comments on commit df02eee

Please sign in to comment.