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

Commit e7a7edd

Browse files
authored
Change getValueInUnit from num to double (#243)
1 parent 6e07a75 commit e7a7edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/core/amount.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class EtherAmount {
7272
/// especially for larger amounts or smaller units. While it can be used to
7373
/// display the amount of ether in a human-readable format, it should not be
7474
/// used for anything else.
75-
num getValueInUnit(EtherUnit unit) {
75+
double getValueInUnit(EtherUnit unit) {
7676
final factor = _factors[unit]!;
7777
final value = _value ~/ factor;
7878
final remainder = _value.remainder(factor);

0 commit comments

Comments
 (0)