From 6d4b80f7f4b8c1b6499d0931205447691063a445 Mon Sep 17 00:00:00 2001 From: Sam Barnes <1211977+sambarnes@users.noreply.github.com> Date: Mon, 30 May 2022 03:53:42 -0600 Subject: [PATCH] Minor fix for example in testing tutorial (#318) * Minor fix for example in testing tutorial * Remove redundant %builtins declaration --- website/docs/tutorials/guides/testing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/docs/tutorials/guides/testing.md b/website/docs/tutorials/guides/testing.md index 8f8dada968..bf9f39f3c0 100644 --- a/website/docs/tutorials/guides/testing.md +++ b/website/docs/tutorials/guides/testing.md @@ -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 @@ -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