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:
2026-02-20 05:16:04 +03:00
parent eb2c6cda55
commit 7f00c98359
4 changed files with 23 additions and 7 deletions
@@ -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
)