Skip to content

Commit

Permalink
Fix baking and delegation on P6
Browse files Browse the repository at this point in the history
(cherry picked from commit 5530963)
  • Loading branch information
bisgardo committed Jul 28, 2023
1 parent 3f2bb25 commit adefa76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct MakeCreateTransferRequest: Codable {
let metadataURL: String?
let transactionFeeCommission: Double?
let bakingRewardCommission: Double?
let finalizationRewardCommission: Double?
let finalizationRewardCommission: String?
let bakerKeys: GeneratedBakerKeys?
let keys: AccountKeys?
let energy: Int?
Expand Down Expand Up @@ -85,7 +85,7 @@ extension MakeCreateTransferRequest {
metadataURL: String?? = nil,
transactionFeeCommission: Double?? = nil,
bakingRewardCommission: Double?? = nil,
finalizationRewardCommission: Double?? = nil,
finalizationRewardCommission: String?? = nil,
bakerKeys: GeneratedBakerKeys?? = nil,
keys: AccountKeys?? = nil,
energy: Int?? = nil,
Expand Down
2 changes: 1 addition & 1 deletion ConcordiumWallet/Service/MobileWallet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class MobileWallet: MobileWalletProtocol {
metadataURL: metadataURL,
transactionFeeCommission: transactionFeeCommission,
bakingRewardCommission: bakingRewardCommission,
finalizationRewardCommission: finalizationRewardCommission,
finalizationRewardCommission: finalizationRewardCommission?.string,
bakerKeys: bakerKeys,
keys: privateAccountKeys,
energy: energy,
Expand Down

0 comments on commit adefa76

Please sign in to comment.