mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-26 05:07:58 +00:00
fix: governance voting and default chain selection for Pezkuwi
Add pezpallet_* type paths to SiVoteTypeMapping so ConvictionVoting vote encoding works on Pezkuwi chains. Set Pezkuwi relay as preferred default chain for governance and crowdloan screens.
This commit is contained in:
+3
-1
@@ -8,6 +8,7 @@ import io.novafoundation.nova.runtime.state.NothingAdditional
|
||||
import io.novafoundation.nova.runtime.state.uniqueOption
|
||||
|
||||
private const val CROWDLOAN_SHARED_STATE = "CROWDLOAN_SHARED_STATE"
|
||||
private const val PEZKUWI_RELAY_CHAIN_ID = "1aa94987791a5544e9667ec249d2cef1b8fdd6083c85b93fc37892d54a1156ca"
|
||||
|
||||
class CrowdloanSharedState(
|
||||
chainRegistry: ChainRegistry,
|
||||
@@ -16,5 +17,6 @@ class CrowdloanSharedState(
|
||||
preferences = preferences,
|
||||
chainRegistry = chainRegistry,
|
||||
supportedOptions = uniqueOption { chain, chainAsset -> chain.hasCrowdloans and chainAsset.isUtilityAsset },
|
||||
preferencesKey = CROWDLOAN_SHARED_STATE
|
||||
preferencesKey = CROWDLOAN_SHARED_STATE,
|
||||
preferredChainId = PEZKUWI_RELAY_CHAIN_ID
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user