Skip to content

Commit

Permalink
Fix spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
  • Loading branch information
Gabriel-Trintinalia committed Aug 31, 2023
1 parent 7b3f751 commit b20f6d4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ interface Decoder {
Transaction decode(RLPInput input, EncodingContext context);
}

private static final TypedTransactionDecoder TYPED_TRANSACTION_DECODER = new TypedTransactionDecoder();
private static final TypedTransactionDecoder TYPED_TRANSACTION_DECODER =
new TypedTransactionDecoder();
private static final FrontierTransactionDecoder FRONTIER_DECODER =
new FrontierTransactionDecoder();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.util.stream.Stream;

import org.apache.tuweni.bytes.Bytes;
import org.hyperledger.besu.ethereum.rlp.RLPOutput;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ void doesNotDecodeEIP1559WithLargeMaxFeePerGasOrLargeMaxPriorityFeePerGas() {
@Test
void shouldDecodeWithHighNonce() {
final Transaction transaction =
TransactionDecoder.decodeRLP(RLP.input(Bytes.fromHexString(NONCE_64_BIT_MAX_MINUS_2_TX_RLP)));
TransactionDecoder.decodeRLP(
RLP.input(Bytes.fromHexString(NONCE_64_BIT_MAX_MINUS_2_TX_RLP)));
assertThat(transaction).isNotNull();
assertThat(transaction.getNonce()).isEqualTo(MAX_NONCE - 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ void blockWithLegacyAndEIP2930TransactionsRoundTrips() {
@Test
void shouldEncodeWithHighNonce() {
final Transaction transaction =
TransactionDecoder.decodeRLP(RLP.input(Bytes.fromHexString(NONCE_64_BIT_MAX_MINUS_2_TX_RLP)));
TransactionDecoder.decodeRLP(
RLP.input(Bytes.fromHexString(NONCE_64_BIT_MAX_MINUS_2_TX_RLP)));
final BytesValueRLPOutput output = new BytesValueRLPOutput();
TransactionEncoder.encodeForWire(transaction, output);
assertThat(output.encoded().toHexString()).isEqualTo(NONCE_64_BIT_MAX_MINUS_2_TX_RLP);
Expand Down

0 comments on commit b20f6d4

Please sign in to comment.