mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 13:09:32 +00:00
c6a26cac16
- Fix parsing of Ethereum amount - Add more Ethereum Nodes [skip ci]
6 lines
165 B
Dart
6 lines
165 B
Dart
import 'dart:math';
|
|
|
|
class EthereumFormatter {
|
|
static int parseEthereumAmount(String amount) =>
|
|
BigInt.from(double.parse(amount) * (pow(10, 18))).toInt();
|
|
}
|