Skip to content

Commit 4e33f86

Browse files
committed
chore: update guides
1 parent 7de58aa commit 4e33f86

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

www/guides/account.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,9 @@ Wait for the deployment transaction to be accepted and assign the address of the
5454

5555
```javascript
5656
await defaultProvider.waitForTransaction(accountResponse.transaction_hash);
57-
const accountContract = new Contract(
58-
compiledAccount.abi,
59-
accountResponse.address
60-
);
61-
const initializeResponse = await accountContract.initialize(starkKeyPub, "0");
62-
63-
await defaultProvider.waitForTransaction(initializeResponse.transaction_hash);
6457
```
6558

66-
Once account contract is initialized [Account](../docs/API/account.md) instance can be created. Use your new account instance to sign transactions, messages or verify signatures!
59+
Once account contract is deployed [Account](../docs/API/account.md) instance can be created. Use your new account instance to sign transactions, messages or verify signatures! Make sure your Account has enough funds to execute invocations.
6760

6861
```js
6962
const account = new Account(

www/guides/erc20.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ const erc20 = new Contract(compiledErc20.abi, erc20Address);
2929
Make sure you created the `Account` instance following the [Creating an Account](./account.md) guide.
3030

3131
```javascript
32+
erc20.connect(account);
33+
3234
const { transaction_hash: mintTxHash } = await erc20.mint(
3335
account.address,
3436
"1000"
3537
);
38+
3639
console.log(`Waiting for Tx to be Accepted on Starknet - Minting...`);
3740
await defaultProvider.waitForTransaction(mintTxHash);
3841
```

0 commit comments

Comments
 (0)