mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 13:09:32 +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();
|
|
} |