doiim / tikua

Isomorphic JS Cartesi package designed for seamless integration with any visual library on both Browser and Terminal environments. The SDK supports any provider or network, offering complete configurability to define applications with multiple chain support. It adapts to specific configurations and provides warnings for unsupported provider chains
Apache License 2.0
2 stars 1 forks source link

Fix JSON import on CJS/ESM #3

Closed dalpii closed 3 months ago

dalpii commented 3 months ago

This pull request fixes the import assertion in the getCartesiDeploymentAddress and getCartesiContractAbi functions. The import statements now include an assertion for the type of the imported file, ensuring that the correct file type is imported. This resolves an issue where incorrect file types were being imported, leading to errors in the code.