Skip to content

Commit

Permalink
fix: spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Kristiyan Selveliev <[email protected]>
  • Loading branch information
kselveliev committed Feb 11, 2025
1 parent 1f6b54c commit 951093f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ private Optional<Map<Bytes, Bytes>> getStorageUpdates(Address accountAddress) {
continue;
}

SlotValue slotValue = (SlotValue) states.get(ContractStorageReadableKVState.KEY).get(slotKey);
SlotValue slotValue = (SlotValue)
states.get(ContractStorageReadableKVState.KEY).get(slotKey);
if (slotValue != null) {
storageUpdates.put(
Bytes.of(slotKey.key().toByteArray()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ void shouldReturnEmptyStorageWhenStorageKeyRetrievalFails() {
when(mirrorNodeState.getWritableStates(CONTRACT_SERVICE)).thenReturn(mockStates);

// Mock storage retrieval to throw IllegalArgumentException
when(mockStates.get(ContractStorageReadableKVState.KEY)).thenThrow(
new IllegalArgumentException("Storage retrieval failed"));
when(mockStates.get(ContractStorageReadableKVState.KEY))
.thenThrow(new IllegalArgumentException("Storage retrieval failed"));

// When
final Opcode opcode = executeOperation(frame);
Expand Down Expand Up @@ -792,7 +792,7 @@ void shouldReturnAbiEncodedRevertReasonWhenPrecompileCallHasContractActionWithRe
assertThat(opcodeForPrecompileCall.reason())
.isNotEmpty()
.isEqualTo(getAbiEncodedRevertReason(Bytes.of(
ResponseCodeEnum.INVALID_ACCOUNT_ID.name().getBytes()))
ResponseCodeEnum.INVALID_ACCOUNT_ID.name().getBytes()))
.toHexString());
}

Expand Down Expand Up @@ -947,8 +947,8 @@ private Map<UInt256, UInt256> setupStorageForCapture(final MessageFrame frame) {
}

private UInt256[] setupStackForCapture(final MessageFrame frame) {
final UInt256[] stack = new UInt256[]{
UInt256.fromHexString("0x01"), UInt256.fromHexString("0x02"), UInt256.fromHexString("0x03")
final UInt256[] stack = new UInt256[] {
UInt256.fromHexString("0x01"), UInt256.fromHexString("0x02"), UInt256.fromHexString("0x03")
};

for (final UInt256 stackItem : stack) {
Expand All @@ -959,8 +959,8 @@ private UInt256[] setupStackForCapture(final MessageFrame frame) {
}

private Bytes[] setupMemoryForCapture(final MessageFrame frame) {
final Bytes[] words = new Bytes[]{
Bytes.fromHexString("0x01", 32), Bytes.fromHexString("0x02", 32), Bytes.fromHexString("0x03", 32)
final Bytes[] words = new Bytes[] {
Bytes.fromHexString("0x01", 32), Bytes.fromHexString("0x02", 32), Bytes.fromHexString("0x03", 32)
};

for (int i = 0; i < words.length; i++) {
Expand Down Expand Up @@ -1006,8 +1006,7 @@ private MessageFrame.Builder messageFrameBuilder(final Address recipientAddress,
.code(CodeV0.EMPTY_CODE)
.sender(Address.ZERO)
.originator(Address.ZERO)
.completer(ignored -> {
})
.completer(ignored -> {})
.miningBeneficiary(Address.ZERO)
.address(recipientAddress)
.contract(recipientAddress)
Expand Down

0 comments on commit 951093f

Please sign in to comment.