Skip to content

Commit

Permalink
style: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Nov 20, 2024
1 parent 6be476f commit cc1349c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class UsernameRequestDetailsFragment : Fragment(R.layout.fragment_username_reque
findNavController().popBackStack()
}

viewModel.selectedUsernameRequest.observe(viewLifecycleOwner) { request ->
viewModel.selectedUsernameRequestId.observe(viewLifecycleOwner) { request ->
binding.username.text = request.username
binding.identity.text = request.identity

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ import org.bitcoinj.core.Base58
import org.bitcoinj.core.DumpedPrivateKey
import org.bitcoinj.core.ECKey
import org.bitcoinj.core.KeyId
import org.bitcoinj.core.MasternodeAddress
import org.bitcoinj.core.NetworkParameters
import org.bitcoinj.core.Sha256Hash
import org.bitcoinj.core.Utils
import org.bitcoinj.crypto.BLSLazyPublicKey
import org.bitcoinj.crypto.BLSPublicKey
import org.bitcoinj.evolution.SimplifiedMasternodeListEntry
import org.bitcoinj.evolution.SimplifiedMasternodeListManager
import org.bitcoinj.wallet.AuthenticationKeyChain
import org.bitcoinj.wallet.authentication.AuthenticationKeyStatus
Expand Down Expand Up @@ -136,7 +130,7 @@ class UsernameRequestsViewModel @Inject constructor(
val filterState: StateFlow<FiltersUIState> = _filterState.asStateFlow()

private val _selectedUsernameRequestId = MutableStateFlow<String?>(null)
val selectedUsernameRequest: Flow<UsernameRequest> = _selectedUsernameRequestId
val selectedUsernameRequestId: Flow<UsernameRequest> = _selectedUsernameRequestId
.filterNotNull()
.distinctUntilChanged()
.flatMapLatest { id ->
Expand Down Expand Up @@ -273,8 +267,6 @@ class UsernameRequestsViewModel @Inject constructor(
isQuickVoting = false
).enqueue()

//usernameRequestDao.removeApproval(request.username)
//usernameRequestDao.update(request.copy(votes = request.votes + keysAmount, isApproved = true))
currentVote = arrayListOf(
UsernameVote(
request.normalizedLabel,
Expand Down

0 comments on commit cc1349c

Please sign in to comment.