Skip to content

Commit 873dcd7

Browse files
authored
chore: removing vite compatibility workaround (#15)
1 parent f7bfe07 commit 873dcd7

File tree

4 files changed

+0
-88
lines changed

4 files changed

+0
-88
lines changed

template_content/README.md.jinja

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,3 @@ It has also been configured to have a productive dev experience out of the box i
9494

9595
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.
9696

97-
# Vite compatibility with `js-algorand-sdk` and `algokit clients`
98-
99-
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:
100-
101-
```ts
102-
Instead of:
103-
104-
const response = await myAlgoKitTypedClient
105-
.someExternalMethod({
106-
some_txn_param: someTxnObject,
107-
})
108-
109-
use:
110-
111-
const response = await appClient
112-
.compose()
113-
.someExternalMethod({
114-
some_txn_param: someTxnObject,
115-
})
116-
.execute()
117-
```
118-

tests_generated/test_all_default_parameters_off/README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,3 @@ This project makes use of React and Tailwind to provider a base project configur
5353

5454
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.
5555

56-
# Vite compatibility with `js-algorand-sdk` and `algokit clients`
57-
58-
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:
59-
60-
```ts
61-
Instead of:
62-
63-
const response = await myAlgoKitTypedClient
64-
.someExternalMethod({
65-
some_txn_param: someTxnObject,
66-
})
67-
68-
use:
69-
70-
const response = await appClient
71-
.compose()
72-
.someExternalMethod({
73-
some_txn_param: someTxnObject,
74-
})
75-
.execute()
76-
```
77-

tests_generated/test_all_default_parameters_on_netlify/README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,3 @@ It has also been configured to have a productive dev experience out of the box i
7777

7878
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.
7979

80-
# Vite compatibility with `js-algorand-sdk` and `algokit clients`
81-
82-
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:
83-
84-
```ts
85-
Instead of:
86-
87-
const response = await myAlgoKitTypedClient
88-
.someExternalMethod({
89-
some_txn_param: someTxnObject,
90-
})
91-
92-
use:
93-
94-
const response = await appClient
95-
.compose()
96-
.someExternalMethod({
97-
some_txn_param: someTxnObject,
98-
})
99-
.execute()
100-
```
101-

tests_generated/test_all_default_parameters_on_vercel/README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,25 +77,3 @@ It has also been configured to have a productive dev experience out of the box i
7777

7878
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.
7979

80-
# Vite compatibility with `js-algorand-sdk` and `algokit clients`
81-
82-
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:
83-
84-
```ts
85-
Instead of:
86-
87-
const response = await myAlgoKitTypedClient
88-
.someExternalMethod({
89-
some_txn_param: someTxnObject,
90-
})
91-
92-
use:
93-
94-
const response = await appClient
95-
.compose()
96-
.someExternalMethod({
97-
some_txn_param: someTxnObject,
98-
})
99-
.execute()
100-
```
101-

0 commit comments

Comments
 (0)