From 21736fd4acccd7664676e5276dea1097888c698a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Tue, 11 Jul 2023 11:13:53 +0200 Subject: [PATCH] Remove election difficulty from expected parameters. It is not used, and not present in P6. --- .../Model/AutoGenerated/ChainParametersResponse.swift | 4 ---- ConcordiumWallet/mock/5.2.2.RX_backend_chain_parameters.json | 1 - 2 files changed, 5 deletions(-) diff --git a/ConcordiumWallet/Model/AutoGenerated/ChainParametersResponse.swift b/ConcordiumWallet/Model/AutoGenerated/ChainParametersResponse.swift index 15dbb3f5..eefd39b6 100644 --- a/ConcordiumWallet/Model/AutoGenerated/ChainParametersResponse.swift +++ b/ConcordiumWallet/Model/AutoGenerated/ChainParametersResponse.swift @@ -22,7 +22,6 @@ struct ChainParametersResponse: Codable { let passiveBakingCommission: Double let accountCreationLimit: Int let finalizationCommissionRange: CommissionRange - let electionDifficulty: Double let euroPerEnergy: EuroPerEnergy let transactionCommissionRange: CommissionRange let minimumEquityCapital: String @@ -43,7 +42,6 @@ struct ChainParametersResponse: Codable { case passiveBakingCommission = "passiveBakingCommission" case accountCreationLimit = "accountCreationLimit" case finalizationCommissionRange = "finalizationCommissionRange" - case electionDifficulty = "electionDifficulty" case euroPerEnergy = "euroPerEnergy" case transactionCommissionRange = "transactionCommissionRange" case minimumEquityCapital = "minimumEquityCapital" @@ -84,7 +82,6 @@ extension ChainParametersResponse { passiveBakingCommission: Double? = nil, accountCreationLimit: Int? = nil, finalizationCommissionRange: CommissionRange? = nil, - electionDifficulty: Double? = nil, euroPerEnergy: EuroPerEnergy? = nil, transactionCommissionRange: CommissionRange? = nil, minimumEquityCapital: String? = nil @@ -105,7 +102,6 @@ extension ChainParametersResponse { passiveBakingCommission: passiveBakingCommission ?? self.passiveBakingCommission, accountCreationLimit: accountCreationLimit ?? self.accountCreationLimit, finalizationCommissionRange: finalizationCommissionRange ?? self.finalizationCommissionRange, - electionDifficulty: electionDifficulty ?? self.electionDifficulty, euroPerEnergy: euroPerEnergy ?? self.euroPerEnergy, transactionCommissionRange: transactionCommissionRange ?? self.transactionCommissionRange, minimumEquityCapital: minimumEquityCapital ?? self.minimumEquityCapital diff --git a/ConcordiumWallet/mock/5.2.2.RX_backend_chain_parameters.json b/ConcordiumWallet/mock/5.2.2.RX_backend_chain_parameters.json index 0d3efb19..3a794e8a 100644 --- a/ConcordiumWallet/mock/5.2.2.RX_backend_chain_parameters.json +++ b/ConcordiumWallet/mock/5.2.2.RX_backend_chain_parameters.json @@ -41,7 +41,6 @@ "max": 5.0e-2, "min": 5.0e-2 }, - "electionDifficulty": 2.5e-2, "euroPerEnergy": { "denominator": 1000000, "numerator": 1