Skip to content

Commit

Permalink
fix: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpeach committed Jul 13, 2024
1 parent 58b19fe commit ce580ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/services/block/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function incrementLastByte(base64: string): string {
// Increment the last byte
let i = buffer.length - 1;
buffer[i] += 1;
while (buffer[i] / 256 > 0 && i > 0) {
while (Math.floor(buffer[i] / 256) > 0 && i > 0) {
buffer[i] %= 256;
buffer[i - 1] += 1;
i -= 1;
Expand Down

0 comments on commit ce580ae

Please sign in to comment.