mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 01:40:55 +01:00
Add -Xsource:3 to db-commons/ (#5585)
This commit is contained in:
parent
863ffd9d6f
commit
791ff3282a
@ -493,6 +493,7 @@ lazy val chainTest = project
|
||||
|
||||
lazy val dbCommons = project
|
||||
.in(file("db-commons"))
|
||||
.settings(scalacOptions += "-Xsource:3")
|
||||
.settings(CommonSettings.prodSettings: _*)
|
||||
.settings(
|
||||
name := "bitcoin-s-db-commons",
|
||||
@ -502,6 +503,7 @@ lazy val dbCommons = project
|
||||
|
||||
lazy val dbCommonsTest = project
|
||||
.in(file("db-commons-test"))
|
||||
.settings(scalacOptions += "-Xsource:3")
|
||||
.settings(CommonSettings.testSettings: _*)
|
||||
.settings(
|
||||
name := "bitcoin-s-db-commons-test"
|
||||
|
@ -8,7 +8,7 @@ import java.sql.SQLException
|
||||
class MasterXPubDAOTest extends TestAppConfigFixture {
|
||||
behavior of "MasterXPubDAO"
|
||||
|
||||
it must "create and find a master xpub" in { testAppConfig: TestAppConfig =>
|
||||
it must "create and find a master xpub" in { (testAppConfig: TestAppConfig) =>
|
||||
val xpriv = ExtPrivateKey.freshRootKey(ExtKeyVersion.SegWitTestNet3Priv)
|
||||
val xpub = xpriv.extPublicKey
|
||||
val masterXpub =
|
||||
@ -30,7 +30,7 @@ class MasterXPubDAOTest extends TestAppConfigFixture {
|
||||
}
|
||||
}
|
||||
|
||||
it must "create only one master xpub" in { testAppConfig: TestAppConfig =>
|
||||
it must "create only one master xpub" in { (testAppConfig: TestAppConfig) =>
|
||||
val masterXpubDAO =
|
||||
MasterXPubDAO()(executionContext, appConfig = testAppConfig)
|
||||
|
||||
@ -52,7 +52,7 @@ class MasterXPubDAOTest extends TestAppConfigFixture {
|
||||
}
|
||||
|
||||
it must "validate the masterxpub and succeed in the database" in {
|
||||
testAppConfig: TestAppConfig =>
|
||||
(testAppConfig: TestAppConfig) =>
|
||||
val xpriv = ExtPrivateKey.freshRootKey(ExtKeyVersion.SegWitTestNet3Priv)
|
||||
val xpub = xpriv.extPublicKey
|
||||
val masterXpub =
|
||||
@ -67,7 +67,7 @@ class MasterXPubDAOTest extends TestAppConfigFixture {
|
||||
}
|
||||
|
||||
it must "throw an exception is the stored master xpub is different than the given" in {
|
||||
testAppConfig: TestAppConfig =>
|
||||
(testAppConfig: TestAppConfig) =>
|
||||
val xpriv = ExtPrivateKey.freshRootKey(ExtKeyVersion.SegWitTestNet3Priv)
|
||||
val xpub = xpriv.extPublicKey
|
||||
val masterXpub =
|
||||
|
@ -185,7 +185,7 @@ class DbCommonsColumnMappers(val profile: JdbcProfile) {
|
||||
|
||||
implicit val uint64Mapper: BaseColumnType[UInt64] = {
|
||||
MappedColumnType.base[UInt64, String](
|
||||
{ u64: UInt64 =>
|
||||
{ (u64: UInt64) =>
|
||||
uInt64ToHex(u64)
|
||||
},
|
||||
UInt64.fromHex
|
||||
|
Loading…
Reference in New Issue
Block a user