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