Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Taam <[email protected]>
  • Loading branch information
matkt committed Feb 13, 2025
1 parent 3cb42fb commit e1f6b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public Bytes getData(final int offset, final int length) {
return Bytes.EMPTY;
}

private long calculateJumpDest(final int entryPos) {
long calculateJumpDest(final int entryPos) {
final byte[] rawCode = bytes.toArrayUnsafe();
final int length = rawCode.length;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ void shouldReuseJumpDestMap() {

OperationResult result = operation.execute(frame, evm);
assertNull(result.getHaltReason());
Mockito.verify(getsCached, times(1)).calculateJumpDests(0, 3);
Mockito.verify(getsCached, times(1)).calculateJumpDest(0);

// do it again to prove we don't recalculate, and we hit the cache

frame = createJumpFrame(getsCached);

result = operation.execute(frame, evm);
assertNull(result.getHaltReason());
Mockito.verify(getsCached, times(1)).calculateJumpDests(0, 3);
Mockito.verify(getsCached, times(1)).calculateJumpDest(0);
}

@Nonnull
Expand Down

0 comments on commit e1f6b8d

Please sign in to comment.