mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
fix: contract decimal places bug for eth token amounts parsing
This commit is contained in:
parent
64527450bf
commit
96bfafcd19
1 changed files with 6 additions and 1 deletions
|
@ -70,6 +70,11 @@ class AmountFormatter {
|
|||
String string, {
|
||||
EthContract? ethContract,
|
||||
}) {
|
||||
return unit.tryParse(string, locale: locale, coin: coin);
|
||||
return unit.tryParse(
|
||||
string,
|
||||
locale: locale,
|
||||
coin: coin,
|
||||
tokenContract: ethContract,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue