AlphaWallet / AlphaWallet/alpha-wallet-ios
Replace BigInt -> BigUInt conversion code and other occurrences of such code
Aperta
- Lingua principale
- Swift
- Stelle
- 631
- Fork
- 384
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Improve this conversion process
`BigInt` -> `Float` -> `String` -> `Decimal` -> `String` -> `BigUInt`
TokensCardCoordinator.swift:326
```swift
let ethCostRoundedTo5dp = String(format: "%.5f", Float(string: String(ethCost))!)
let cost = Decimal(string: ethCostRoundedTo5dp)! * Decimal(string: "1000000000000000000")!
let wei = BigUInt(cost.description)!
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.