Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(connector-polkadot): use dynamic import calls for ESM dependencies
1. The polkadot libraries are all ESM-only so we have to import them in a specific way in order to avoid runtime crashes. 2. This was not done in the original implementation of the polkadot connector and because of that all the tests were failing. 3. Refactoring the code so that all polkadot related dependencies are imported dynamically fixes the issue. 4. Also fixed the issue where the getRawTransaction HTTP REST handler was not `await` ing for the result of the connector's method which broke the run-transaction test case (now also fixed) Fixes #3077 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information