Skip to content

Commit

Permalink
Merge pull request #355 from Concordium/mo/legacy-baking-delegation
Browse files Browse the repository at this point in the history
Fix baking and delegation on P6
  • Loading branch information
bisgardo authored Jul 28, 2023
2 parents 3f2bb25 + fb54445 commit 44ff738
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ConcordiumWallet/Model/AutoGenerated/GASRewards.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ struct GASRewards: Codable {
let chainUpdate: Double
let accountCreation: Double
let baker: Double
let finalizationProof: Double

enum CodingKeys: String, CodingKey {
case chainUpdate = "chainUpdate"
case accountCreation = "accountCreation"
case baker = "baker"
case finalizationProof = "finalizationProof"
}
}

Expand All @@ -41,14 +39,12 @@ extension GASRewards {
func with(
chainUpdate: Double? = nil,
accountCreation: Double? = nil,
baker: Double? = nil,
finalizationProof: Double? = nil
baker: Double? = nil
) -> GASRewards {
return GASRewards(
chainUpdate: chainUpdate ?? self.chainUpdate,
accountCreation: accountCreation ?? self.accountCreation,
baker: baker ?? self.baker,
finalizationProof: finalizationProof ?? self.finalizationProof
baker: baker ?? self.baker
)
}

Expand Down

0 comments on commit 44ff738

Please sign in to comment.