1
1
package io .iohk .ethereum .jsonrpc
2
2
3
3
import java .time .Duration
4
+
4
5
import akka .actor .ActorSystem
5
6
import akka .testkit .TestProbe
6
7
import akka .util .ByteString
@@ -15,15 +16,17 @@ import io.iohk.ethereum.keystore.{KeyStore, Wallet}
15
16
import io .iohk .ethereum .transactions .PendingTransactionsManager ._
16
17
import io .iohk .ethereum .utils .{BlockchainConfig , MonetaryPolicyConfig , TxPoolConfig }
17
18
import io .iohk .ethereum .{Fixtures , NormalPatience , Timeouts }
18
- import org .scalamock .matchers .Matcher
19
+ import org .bouncycastle .util .encoders .Hex
20
+ import org .scalamock .matchers .MatcherBase
19
21
import org .scalamock .scalatest .MockFactory
20
22
import org .scalatest .concurrent .{Eventually , ScalaFutures }
23
+ import org .scalatest .flatspec .AnyFlatSpec
24
+ import org .scalatest .matchers .should .Matchers
21
25
import org .scalatest .time .{Millis , Seconds , Span }
22
- import org .bouncycastle .util .encoders .Hex
23
26
import org .scalatestplus .scalacheck .ScalaCheckPropertyChecks
27
+
24
28
import scala .concurrent .duration .FiniteDuration
25
- import org .scalatest .flatspec .AnyFlatSpec
26
- import org .scalatest .matchers .should .Matchers
29
+ import scala .reflect .ClassTag
27
30
28
31
class PersonalServiceSpec
29
32
extends AnyFlatSpec
@@ -437,10 +440,9 @@ class PersonalServiceSpec
437
440
val nonce = 7
438
441
val txValue = 128000
439
442
440
- val blockchainConfig = BlockchainConfig (
443
+ val blockchainConfig = BlockchainConfig (
441
444
eip155BlockNumber = 12345 ,
442
445
chainId = 0x03 .toByte,
443
-
444
446
// unused
445
447
networkId = 1 ,
446
448
maxCodeSize = None ,
@@ -495,7 +497,7 @@ class PersonalServiceSpec
495
497
val personal =
496
498
new PersonalService (keyStore, blockchain, txPool.ref, appStateStorage, blockchainConfig, txPoolConfig)
497
499
498
- def array [T ](arr : Array [T ]): Matcher [Array [T ]] =
500
+ def array [T ](arr : Array [T ])( implicit ev : ClassTag [Array [T ]]) : MatcherBase =
499
501
argThat((_ : Array [T ]) sameElements arr)
500
502
}
501
503
}
0 commit comments