mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 02: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
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user