Skip to content

Commit

Permalink
Merge pull request #1471 from novasamatech/hotfix/7.11.1
Browse files Browse the repository at this point in the history
Hotfix/7.11.1
  • Loading branch information
valentunn authored Apr 10, 2024
2 parents e06c338 + ef9b628 commit 6e9e668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {
ext {
// App version
versionName = '7.11.0'
versionCode = 129
versionName = '7.11.1'
versionCode = 130

applicationId = "io.novafoundation.nova"
releaseApplicationSuffix = "market"
Expand Down Expand Up @@ -51,7 +51,7 @@ buildscript {

web3jVersion = '4.9.5'

substrateSdkVersion = '2.0.0'
substrateSdkVersion = '2.0.2'

gifVersion = '1.2.19'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@ import io.novafoundation.nova.runtime.multiNetwork.chain.model.Chain.Asset.Staki
import io.novafoundation.nova.runtime.storage.source.StorageDataSource
import io.novafoundation.nova.runtime.storage.source.query.api.observeNonNull
import io.novafoundation.nova.runtime.storage.source.query.metadata
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.emptyFlow
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.shareIn
import kotlin.coroutines.coroutineContext

class RealPooledBalanceUpdaterFactory(
private val remoteStorageSource: StorageDataSource,
Expand Down Expand Up @@ -92,7 +88,6 @@ class PooledBalanceUpdater(
return remoteStorageSource.subscribe(chain.id, storageSubscriptionBuilder) {
val poolMemberFlow = metadata.nominationPools.poolMembers
.observe(accountId)
.shareIn(CoroutineScope(coroutineContext), SharingStarted.Lazily, replay = 1)

val poolWithBalance = poolMemberFlow
.map { it?.poolId }
Expand Down

0 comments on commit 6e9e668

Please sign in to comment.