Commit 0ff495b
committed
fix: destructure decimal part in TokenAmountField isAllowed validator
The isAllowed callback was destructuring index 0 from split('.'),
which is the integer part, not the decimal part. This caused the
validation to compare token decimals against the integer digit count
instead of the actual decimal digit count.1 parent 3b21251 commit 0ff495b
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments