Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot committed Nov 20, 2024
1 parent 5479695 commit b46bdcb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions node/src/main/scala/com/wavesplatform/state/Blockchain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,5 @@ object Blockchain {
}
.fold(1)(_ => BlockRewardCalculator.RewardBoost)

def unitIsApproved(dApp: AddressOrAlias): Boolean =
blockchain.resolveAlias(dApp).toOption.forall { chainContractAddress =>
blockchain.settings.functionalitySettings.unitsRegistryAddressParsed.toOption.flatten.forall { addr =>
blockchain.accountData(addr, s"unit_${chainContractAddress.toString}_approved") match {
case Some(BooleanDataEntry(_, value)) => value
case _ => false
}
}
}
}
}

0 comments on commit b46bdcb

Please sign in to comment.