mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 13:39:39 +00:00
6 lines
No EOL
198 B
Dart
6 lines
No EOL
198 B
Dart
import 'package:web3dart/web3dart.dart';
|
|
|
|
class EthereumFormatter {
|
|
static int parseEthereumAmount(String amount) =>
|
|
EtherAmount.fromUnitAndValue(EtherUnit.ether, amount).getInWei.toInt();
|
|
} |