Fix function call

This commit is contained in:
Ivan Grachyov 2021-07-10 16:44:36 +03:00
parent 7c681bc923
commit aa425abcbd

View File

@ -46,9 +46,9 @@ struct Transaction {
var result = [String]()
if let decimal = try? weiAmount.value().toNormalizedDecimal(power: 18) {
let decimalNumber = NSDecimalNumber(decimal: decimal)
let cost = cost(value: decimalNumber, price: ethPrice)
let costString = cost(value: decimalNumber, price: ethPrice)
if let value = ethString(decimalNumber: decimalNumber) {
result.append("\(value) ETH" + cost)
result.append("\(value) ETH" + costString)
}
}
result.append("Fee: " + fee)