Skip to content

Commit 3232cf2

Browse files
[ETCM-1015] Format all
1 parent dfffdad commit 3232cf2

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

src/it/scala/io/iohk/ethereum/txExecTest/ForksTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ForksTest extends AnyFlatSpec with Matchers {
2727
homesteadBlockNumber = 3,
2828
eip150BlockNumber = 5,
2929
eip160BlockNumber = 7,
30-
eip155BlockNumber = 0,
30+
eip155BlockNumber = 0
3131
),
3232
chainId = 0x3d.toByte,
3333
monetaryPolicyConfig = MonetaryPolicyConfig(5000000, 0.2, 5000000000000000000L, 3000000000000000000L),

src/main/scala/io/iohk/ethereum/jsonrpc/TestService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class TestService(
227227
aghartaBlockNumber = istanbulForkBlockNumber,
228228
istanbulBlockNumber = istanbulForkBlockNumber,
229229
atlantisBlockNumber = istanbulForkBlockNumber,
230-
phoenixBlockNumber = istanbulForkBlockNumber,
230+
phoenixBlockNumber = istanbulForkBlockNumber
231231
),
232232
accountStartNonce = UInt256(blockchainParams.accountStartNonce),
233233
networkId = 1,

src/main/scala/io/iohk/ethereum/utils/BlockchainConfig.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ case class BlockchainConfig(
3838
copy(forkBlockNumbers = update(forkBlockNumbers))
3939
}
4040

41-
case class ForkBlockNumbers (
41+
case class ForkBlockNumbers(
4242
frontierBlockNumber: BigInt,
4343
homesteadBlockNumber: BigInt,
4444
eip106BlockNumber: BigInt,

src/test/scala/io/iohk/ethereum/consensus/blocks/BlockGeneratorSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class BlockGeneratorSpec extends AnyFlatSpec with Matchers with ScalaCheckProper
229229
homesteadBlockNumber = 1150000,
230230
difficultyBombPauseBlockNumber = 3000000,
231231
difficultyBombContinueBlockNumber = 5000000,
232-
difficultyBombRemovalBlockNumber = 5900000,
232+
difficultyBombRemovalBlockNumber = 5900000
233233
)
234234
)
235235

@@ -282,7 +282,7 @@ class BlockGeneratorSpec extends AnyFlatSpec with Matchers with ScalaCheckProper
282282
difficultyBombPauseBlockNumber = 3000000,
283283
difficultyBombContinueBlockNumber = 5000000,
284284
difficultyBombRemovalBlockNumber = 5900000,
285-
eip161BlockNumber = 0,
285+
eip161BlockNumber = 0
286286
),
287287
chainId = 0x3d.toByte,
288288
networkId = 1,
@@ -648,7 +648,7 @@ class BlockGeneratorSpec extends AnyFlatSpec with Matchers with ScalaCheckProper
648648
eip155BlockNumber = 0,
649649
difficultyBombPauseBlockNumber = 3000000,
650650
difficultyBombContinueBlockNumber = 5000000,
651-
difficultyBombRemovalBlockNumber = 5900000,
651+
difficultyBombRemovalBlockNumber = 5900000
652652
),
653653
chainId = 0x3d.toByte,
654654
networkId = 1,

src/test/scala/io/iohk/ethereum/consensus/pow/validators/EthashBlockHeaderValidatorSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class EthashBlockHeaderValidatorSpec
388388
byzantiumBlockNumber = 4370000,
389389
constantinopleBlockNumber = 7280000,
390390
istanbulBlockNumber = 9069000,
391-
eip106BlockNumber = 0,
391+
eip106BlockNumber = 0
392392
),
393393
daoForkConfig = Some(new DaoForkConfig {
394394
override val blockExtraData: Option[ByteString] =

src/test/scala/io/iohk/ethereum/consensus/pow/validators/RestrictedEthashBlockHeaderValidatorSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class RestrictedEthashBlockHeaderValidatorSpec
8686
byzantiumBlockNumber = 4370000,
8787
constantinopleBlockNumber = 7280000,
8888
istanbulBlockNumber = 9069000,
89-
eip106BlockNumber = 0,
89+
eip106BlockNumber = 0
9090
),
9191
daoForkConfig = None,
9292
// unused

src/test/scala/io/iohk/ethereum/forkid/ForkIdSpec.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class ForkIdSpec extends AnyWordSpec with Matchers {
2020
}
2121
"gatherForks for the etc chain correctly" in {
2222
val res = config.blockchains.map { case (name, conf) => (name, gatherForks(conf)) }
23-
res("etc") shouldBe List(1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839, 11700000, 13189133)
23+
res("etc") shouldBe List(1150000, 2500000, 3000000, 5000000, 5900000, 8772000, 9573000, 10500839, 11700000,
24+
13189133)
2425
}
2526

2627
"gatherForks for the eth chain correctly" in {
@@ -79,7 +80,7 @@ class ForkIdSpec extends AnyWordSpec with Matchers {
7980
create(10500839) shouldBe ForkId(0x9007bfccL, Some(11700000))
8081
create(11700000 - 1) shouldBe ForkId(0x9007bfccL, Some(11700000))
8182
create(11700000) shouldBe ForkId(0xdb63a1caL, Some(13189133))
82-
create(13189133-1) shouldBe ForkId(0xdb63a1caL, Some(13189133))
83+
create(13189133 - 1) shouldBe ForkId(0xdb63a1caL, Some(13189133))
8384
create(13189133) shouldBe ForkId(0x0f6bf187L, None) // First Magneto block
8485
}
8586

@@ -95,7 +96,7 @@ class ForkIdSpec extends AnyWordSpec with Matchers {
9596
create(999983) shouldBe ForkId(0xf42f5539L, Some(2520000))
9697
create(2519999) shouldBe ForkId(0xf42f5539L, Some(2520000))
9798
create(2520000) shouldBe ForkId(0x66b5c286L, Some(3985893))
98-
create(3985893-1) shouldBe ForkId(0x66b5c286L, Some(3985893))
99+
create(3985893 - 1) shouldBe ForkId(0x66b5c286L, Some(3985893))
99100
create(3985893) shouldBe ForkId(0x92b323e0L, None) // First Magneto block
100101
}
101102

0 commit comments

Comments
 (0)