interlay/interbtc-api

[debug] Failing imports from utils/currency.ts in tests

peterslany opened this issue · 0 comments

Describe the bug
Importing newMonetaryAmount and tokenSymbolToCurrency in tests using relative import from src/ index file is not working - functions are undefined. To resolve the issue, these have to be imported from utils folder separately which creates unwanted inconsistency in imports.

Error message example:
TypeError: src_1.newMonetaryAmount is not a function

Additional context
This problem started occurring with #604 in which the monetary lib was updated to newer version. Both problematic functions are dependent on monetary.js