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