Skip to content

Commit

Permalink
Update docs: Starknet CLI account disclaimer
Browse files Browse the repository at this point in the history
* [skip ci]
  • Loading branch information
FabijanC committed Feb 16, 2023
1 parent 805c433 commit 1169ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ describe("My Test", function () {
});

it("should declare class and deploy", async function() {
// not compatible with accounts deployed with Starknet CLI
const account = await starknet.OpenZeppelinAccount.getAccountFromAddress(...);
const contractFactory = await starknet.getContractFactory("MyContract");
const classHash = await account.declare(contractFactory); // class declaration
Expand Down Expand Up @@ -784,7 +785,7 @@ To successfully deploy `ArgentAccount`, the chain you are interacting with is ex
### Reuse account
To retrieve an already deployed Account, use the `getAccountFromAddress` method. What may be especially useful are [predeployed+predefined accounts](https://shard-labs.github.io/starknet-devnet/docs/guide/Predeployed-accounts) that come with Devnet (retrieve them with `starknet.devnet.getPredeployedAccounts()`).
To retrieve an already deployed Account, use the `getAccountFromAddress` method. Do not use this method for accounts deployed by e.g. Starknet CLI (those are modified OZ accounts that are not compatible with the OZ version supported by this plugin). What may be especially useful are [predeployed+predefined accounts](https://shard-labs.github.io/starknet-devnet/docs/guide/Predeployed-accounts) that come with Devnet (retrieve them with `starknet.devnet.getPredeployedAccounts()`).
```typescript
const account = await starknet.OpenZeppelinAccount.getAccountFromAddress(
Expand Down

0 comments on commit 1169ef9

Please sign in to comment.