Skip to content

Commit

Permalink
Minor fix for example in testing tutorial (#318)
Browse files Browse the repository at this point in the history
* Minor fix for example in testing tutorial

* Remove redundant %builtins declaration
  • Loading branch information
sambarnes authored May 30, 2022
1 parent 329c899 commit 6d4b80f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/docs/tutorials/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Then in the `tests` directory create file `test_utils.cairo`, which contains a s
from src.utils import sum_func
@**external**
@external
func test_sum{syscall_ptr : felt*, range_check_ptr}():
let (r) = sum_func(4,3)
assert r = 7
Expand Down Expand Up @@ -61,7 +61,6 @@ We will use an example of a simple storage contract to show you how to deploy co
First, inside a `src` directory, create a `storage_contract.cairo`
```code title="src/storage_contract.cairo"
%lang starknet
%builtins pedersen range_check
from starkware.cairo.common.cairo_builtins import HashBuiltin
from starkware.cairo.common.uint256 import Uint256, uint256_add
Expand Down

0 comments on commit 6d4b80f

Please sign in to comment.