diff --git a/template_content/README.md.jinja b/template_content/README.md.jinja index 1663bab..ea195ee 100644 --- a/template_content/README.md.jinja +++ b/template_content/README.md.jinja @@ -94,25 +94,3 @@ It has also been configured to have a productive dev experience out of the box i Refer to the detailed guidance on [integrating with smart contracts and application clients](./src/contracts/README.md). In essence, for any smart contract codebase generated with AlgoKit or other tools that produce compile contracts into ARC34 compliant app specifications, you can use the `algokit generate` command to generate TypeScript or Python typed client. Once generated simply drag and drop the generated client into `./src/contracts` and import it into your React components as you see fit. -# Vite compatibility with `js-algorand-sdk` and `algokit clients` - -If you are receiving `address malformed` errors when sending direct calls to abi methods on AlgoKit typed clients where ABI parameters expect ABI transactions to be passed, this is a known edge case and a bug that occurs on [Vite in dev mode](https://github.com/vitejs/vite/issues/9528). A fix is in the works on [js-algorand-sdk](https://github.com/algorand/js-algorand-sdk/issues/740) side (which is used as a main low-level dependency by AlgoKit to generate typed clients), but in the meantime you can use a simple workaround described below: - -```ts -Instead of: - -const response = await myAlgoKitTypedClient - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - -use: - -const response = await appClient - .compose() - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - .execute() -``` - diff --git a/tests_generated/test_all_default_parameters_off/README.md b/tests_generated/test_all_default_parameters_off/README.md index ef60d14..3acd5e9 100644 --- a/tests_generated/test_all_default_parameters_off/README.md +++ b/tests_generated/test_all_default_parameters_off/README.md @@ -53,25 +53,3 @@ This project makes use of React and Tailwind to provider a base project configur Refer to the detailed guidance on [integrating with smart contracts and application clients](./src/contracts/README.md). In essence, for any smart contract codebase generated with AlgoKit or other tools that produce compile contracts into ARC34 compliant app specifications, you can use the `algokit generate` command to generate TypeScript or Python typed client. Once generated simply drag and drop the generated client into `./src/contracts` and import it into your React components as you see fit. -# Vite compatibility with `js-algorand-sdk` and `algokit clients` - -If you are receiving `address malformed` errors when sending direct calls to abi methods on AlgoKit typed clients where ABI parameters expect ABI transactions to be passed, this is a known edge case and a bug that occurs on [Vite in dev mode](https://github.com/vitejs/vite/issues/9528). A fix is in the works on [js-algorand-sdk](https://github.com/algorand/js-algorand-sdk/issues/740) side (which is used as a main low-level dependency by AlgoKit to generate typed clients), but in the meantime you can use a simple workaround described below: - -```ts -Instead of: - -const response = await myAlgoKitTypedClient - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - -use: - -const response = await appClient - .compose() - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - .execute() -``` - diff --git a/tests_generated/test_all_default_parameters_on_netlify/README.md b/tests_generated/test_all_default_parameters_on_netlify/README.md index 1543f72..8fbd316 100644 --- a/tests_generated/test_all_default_parameters_on_netlify/README.md +++ b/tests_generated/test_all_default_parameters_on_netlify/README.md @@ -77,25 +77,3 @@ It has also been configured to have a productive dev experience out of the box i Refer to the detailed guidance on [integrating with smart contracts and application clients](./src/contracts/README.md). In essence, for any smart contract codebase generated with AlgoKit or other tools that produce compile contracts into ARC34 compliant app specifications, you can use the `algokit generate` command to generate TypeScript or Python typed client. Once generated simply drag and drop the generated client into `./src/contracts` and import it into your React components as you see fit. -# Vite compatibility with `js-algorand-sdk` and `algokit clients` - -If you are receiving `address malformed` errors when sending direct calls to abi methods on AlgoKit typed clients where ABI parameters expect ABI transactions to be passed, this is a known edge case and a bug that occurs on [Vite in dev mode](https://github.com/vitejs/vite/issues/9528). A fix is in the works on [js-algorand-sdk](https://github.com/algorand/js-algorand-sdk/issues/740) side (which is used as a main low-level dependency by AlgoKit to generate typed clients), but in the meantime you can use a simple workaround described below: - -```ts -Instead of: - -const response = await myAlgoKitTypedClient - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - -use: - -const response = await appClient - .compose() - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - .execute() -``` - diff --git a/tests_generated/test_all_default_parameters_on_vercel/README.md b/tests_generated/test_all_default_parameters_on_vercel/README.md index 6858bf9..85c151a 100644 --- a/tests_generated/test_all_default_parameters_on_vercel/README.md +++ b/tests_generated/test_all_default_parameters_on_vercel/README.md @@ -77,25 +77,3 @@ It has also been configured to have a productive dev experience out of the box i Refer to the detailed guidance on [integrating with smart contracts and application clients](./src/contracts/README.md). In essence, for any smart contract codebase generated with AlgoKit or other tools that produce compile contracts into ARC34 compliant app specifications, you can use the `algokit generate` command to generate TypeScript or Python typed client. Once generated simply drag and drop the generated client into `./src/contracts` and import it into your React components as you see fit. -# Vite compatibility with `js-algorand-sdk` and `algokit clients` - -If you are receiving `address malformed` errors when sending direct calls to abi methods on AlgoKit typed clients where ABI parameters expect ABI transactions to be passed, this is a known edge case and a bug that occurs on [Vite in dev mode](https://github.com/vitejs/vite/issues/9528). A fix is in the works on [js-algorand-sdk](https://github.com/algorand/js-algorand-sdk/issues/740) side (which is used as a main low-level dependency by AlgoKit to generate typed clients), but in the meantime you can use a simple workaround described below: - -```ts -Instead of: - -const response = await myAlgoKitTypedClient - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - -use: - -const response = await appClient - .compose() - .someExternalMethod({ - some_txn_param: someTxnObject, - }) - .execute() -``` -