Skip to content

Commit

Permalink
minor fix in declare-a-smart-contract.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
LandauRaz authored Nov 20, 2024
1 parent 9fd74be commit e5ad42f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ A contract can be declared on Starknet using Starkli by running following comman

[source,bash]
----
starkli declare target/dev/<PROJECT_NAME>.sierra.json --network=sepolia
starkli declare target/dev/<CONTRACT_NAME>.sierra.json --network=sepolia
----

When using `starkli declare`, Starkli will do its best to identify the compiler version of the declared class. In case it fails, the `--compiler-version` flag can be used to specify the version of the compiler as follows:
Expand Down Expand Up @@ -135,7 +135,7 @@ The following is an example of declaring a contract with both a a custom RPC end
[source,bash]
----
starkli declare target/dev/<PROJECT_NAME>.sierra.json \
starkli declare target/dev/<CONTRACT_NAME>.sierra.json \
--rpc=https://starknet-sepolia.infura.io/v3/<API_KEY> \
--compiler-version=2.6.0 \
----
Expand All @@ -159,4 +159,4 @@ Not declaring class as its already declared. Class hash: <CLASS_HASH>

This is because declaration is a one-time process for each unique contract code, and a contract's class hash is its unique identifier (for more details, see xref:architecture-and-concepts:smart-contracts/class-hash.adoc[Class hash]).

In both cases, however, you should be able to see the declared contract on a block explorer like https://sepolia.starkscan.co/[StarkScan] or https://sepolia.voyager.online/[Voyager] by searching for its class hash.
In both cases, however, you should be able to see the declared contract on a block explorer like https://sepolia.starkscan.co/[StarkScan] or https://sepolia.voyager.online/[Voyager] by searching for its class hash.

0 comments on commit e5ad42f

Please sign in to comment.