mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 05:29:57 +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();
|
|
}
|