Skip to content

Commit

Permalink
fix: align mono and mod test results
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
  • Loading branch information
thenswan committed Feb 1, 2024
1 parent 2ca78ae commit 8c90e00
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public CustomCallOperation(
public OperationResult execute(@NonNull final MessageFrame frame, @NonNull final EVM evm) {
try {
final var toAddress = to(frame);
if (isLazyCreateButInvalidateAlias(frame, toAddress)) {
return new OperationResult(cost(frame), INVALID_ALIAS_KEY);
}
final var isMissing = mustBePresent(frame, toAddress) && !addressChecks.isPresent(toAddress, frame);
if (isMissing) {
return new OperationResult(cost(frame), INVALID_SOLIDITY_ADDRESS);
}
if (isLazyCreateButInvalidateAlias(frame, toAddress)) {
return new OperationResult(cost(frame), INVALID_ALIAS_KEY);
}

return super.execute(frame, evm);
} catch (final UnderflowException ignore) {
Expand Down

0 comments on commit 8c90e00

Please sign in to comment.