Skip to content

Commit

Permalink
fix(docs): Correct contract name from "HelloStarknet" to "SimpleContr…
Browse files Browse the repository at this point in the history
…act" (#2735)

#2734

Closes #

## Introduced changes

The documentation incorrectly refers to the "HelloStarknet" contract in
the test example. Updated it to the correct contract name
"SimpleContract" for clarity and accuracy.
  • Loading branch information
Jagadeeshftw authored Dec 2, 2024
1 parent 334f769 commit d513efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/testing/contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Note that the name after `mod` will be used as the contract name for testing pur

## Writing Tests

Let's write a test that will deploy the `HelloStarknet` contract and call some functions.
Let's write a test that will deploy the `SimpleContract` contract and call some functions.

```rust
{{#include ../../listings/testing_smart_contracts_writing_tests/tests/simple_contract.cairo}}
Expand All @@ -36,7 +36,7 @@ Let's write a test that will deploy the `HelloStarknet` contract and call some f
>
> Notice that the arguments to the contract's constructor (the `deploy`'s `calldata` argument) need to be serialized with `Serde`.
>
> `HelloStarknet` contract has no constructor, so the calldata remains empty in the example above.
> `SimpleContract` contract has no constructor, so the calldata remains empty in the example above.
```shell
$ snforge test
Expand Down

0 comments on commit d513efd

Please sign in to comment.