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