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
@@ -12,6 +12,7 @@ import io.novafoundation.nova.runtime.multiNetwork.chain.model.ChainId
import io.novafoundation.nova.runtime.state.SelectableSingleAssetSharedState
private const val GOVERNANCE_SHARED_STATE = "GOVERNANCE_SHARED_STATE"
private const val PEZKUWI_RELAY_CHAIN_ID = "1aa94987791a5544e9667ec249d2cef1b8fdd6083c85b93fc37892d54a1156ca"
class GovernanceSharedState(
chainRegistry: ChainRegistry,
@@ -27,7 +28,8 @@ class GovernanceSharedState(
emptyList()
}
},
preferencesKey = GOVERNANCE_SHARED_STATE
preferencesKey = GOVERNANCE_SHARED_STATE,
preferredChainId = PEZKUWI_RELAY_CHAIN_ID
),
MutableGovernanceState {