Skip to content

Commit

Permalink
Revert change for translating commissions from doubles into strings
Browse files Browse the repository at this point in the history
The change don't work for the version of the crypto libs used in the legacy wallet. In the test we also didn't run into any errors related to this.
  • Loading branch information
bisgardo committed Jul 28, 2023
1 parent adefa76 commit fb54445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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: String?
let finalizationRewardCommission: Double?
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: String?? = nil,
finalizationRewardCommission: Double?? = 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?.string,
finalizationRewardCommission: finalizationRewardCommission,
bakerKeys: bakerKeys,
keys: privateAccountKeys,
energy: energy,
Expand Down

0 comments on commit fb54445

Please sign in to comment.