Skip to content

Commit

Permalink
Remove more ficus code
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirlogachev committed Nov 15, 2024
1 parent 907e71f commit 01d83c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.wavesplatform.history.StorageFactory
import com.wavesplatform.settings.*
import com.wavesplatform.transaction.Asset.Waves
import com.wavesplatform.utils.NTP
import net.ceedubs.ficus.Ficus.*
import pureconfig.ConfigSource

object BaseTargetChecker {
def main(args: Array[String]): Unit = {
Expand Down Expand Up @@ -41,7 +41,7 @@ object BaseTargetChecker {
blockchainUpdater.processBlock(genesisBlock, genesisBlock.header.generationSignature, None)

NodeConfigs.Default.map(_.withFallback(sharedConfig)).collect {
case cfg if cfg.as[Boolean]("waves.miner.enable") =>
case cfg if ConfigSource.fromConfig(cfg).at("waves.miner.enable").loadOrThrow[Boolean] =>
val account = KeyPair.fromSeed(cfg.getString("account-seed")).explicitGet()
val address = account.toAddress
val balance = blockchainUpdater.balance(address, Waves)
Expand Down

0 comments on commit 01d83c3

Please sign in to comment.