Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Change getValueInUnit from num to double (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyinkin authored Jan 26, 2022
1 parent 6e07a75 commit e7a7edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/amount.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class EtherAmount {
/// especially for larger amounts or smaller units. While it can be used to
/// display the amount of ether in a human-readable format, it should not be
/// used for anything else.
num getValueInUnit(EtherUnit unit) {
double getValueInUnit(EtherUnit unit) {
final factor = _factors[unit]!;
final value = _value ~/ factor;
final remainder = _value.remainder(factor);
Expand Down

0 comments on commit e7a7edd

Please sign in to comment.