You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/cross-vm-apps/introduction.md
+8-25Lines changed: 8 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Click `Send Batch Transaction Example` and approve the transaction. You'll see t
98
98
99
99
:::tip
100
100
101
-
Currently, the Flow wallet sponsors all gas for all transactions on both testnet **and mainnet!**
101
+
Currently, the Flow wallet sponsors all gas for all transactions signed with the wallet on both testnet **and mainnet!**
102
102
103
103
:::
104
104
@@ -234,7 +234,7 @@ Returns the current Cadence VM block number.
234
234
235
235
Next, we'll update the starter to connect to and call functions in our own contract. For this, we'll use a simple [Button Clicker Contract]. You can deploy your own copy, or use the one deployed at [`0xA7Cf2260e501952c71189D04FAd17c704DFB36e6`].
236
236
237
-
## Set Up a `useContracts` Hook
237
+
## Set Up Contract Imports
238
238
239
239
:::info
240
240
@@ -244,35 +244,18 @@ The following steps assume deployment with Hardhat Ignition. If you are using a
244
244
245
245
In your fork of the app, add a folder called `contracts` to the `src` folder. In it, copy over ['deployed_addresses.json`] from `ignition/deployments/chain-545` in the Button Clicker repo, and `ignition/deployments/chain-545/ClickTokenModule#ClickToken.json`.
246
246
247
-
Next, add a file called `useContracts.ts` in the `src/hooks` folder.
247
+
Next, create a folder called `constants` and add a file called `contracts.ts` to it.
248
248
249
-
In it, import the contract artifact and addresses file, and create a hook to conveniently export them where needed.
249
+
In it, import the contract artifact and addresses file, and create export a constant with this information.
0 commit comments