Skip to content

Commit c94b9ac

Browse files
committed
Update checkStorage.js to use placeholders for mnemonic and contract address; revise documentation to reflect these changes and remove unnecessary placeholder instructions.
1 parent 4009f7f commit c94b9ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.snippets/code/smart-contracts/libraries/ethers-js/checkStorage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ const providerConfig = {
7171
chainId: 420420422,
7272
};
7373

74-
const mnemonic = 'evoke moment pluck misery cheese boy era fresh useful frame resemble cinnamon';
74+
const mnemonic = 'INSERT_MNEMONIC'
7575
const contractName = 'Storage';
76-
const contractAddress = '0x83e43892a98f924706E9DB7917244897dC8b8126';
76+
const contractAddress = 'INSERT_CONTRACT_ADDRESS'
7777
const newNumber = 42;
7878

7979
interactWithStorageContract(

smart-contracts/libraries/ethers-js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ You can create a `deploy.js` script in the root of your project to achieve this.
175175
5. Configure and execute the deployment:
176176

177177
```js title="scripts/deploy.js"
178-
--8<-- 'code/smart-contracts/libraries/ethers-js/deploy.js4:92'
178+
--8<-- 'code/smart-contracts/libraries/ethers-js/deploy.js:84:92'
179179
```
180180

181181
!!! note
@@ -205,7 +205,7 @@ Once the contract is deployed, you can interact with it by calling its functions
205205
--8<-- 'code/smart-contracts/libraries/ethers-js/checkStorage.js'
206206
```
207207
208-
Ensure you replace the `INSERT_MNEMONIC`, `INSERT_CONTRACT_ADDRESS`, and `INSERT_ADDRESS_TO_CHECK` placeholders with actual values. Also, ensure the contract ABI file (`Storage.json`) is correctly referenced. The script prints the balance for `ADDRESS_TO_CHECK` before it writes and doubles the stored value, so pick any account you want to monitor.
208+
Ensure you replace the `INSERT_MNEMONIC` and `INSERT_CONTRACT_ADDRESS` placeholders with actual values. Also, ensure the contract ABI file (`Storage.json`) is correctly referenced. The script prints the balance for `ADDRESS_TO_CHECK` before it writes and doubles the stored value, so pick any account you want to monitor.
209209
210210
To interact with the contract, run:
211211

0 commit comments

Comments
 (0)