Skip to content

Commit

Permalink
fix: fix typo in the assert function in set_caller_address example (#375
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Jagadeeshftw authored Jan 16, 2025
1 parent 4f20714 commit 83c352b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/framework/testing-cheat-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use starknet::{testing, get_caller_address, contract_address_const};
fn f2() {
let user_one = contract_address_const::<'user1'>();
testing::set_caller_address(user_one);
assert(get_caller_address() == user_one, 'bad caller';
assert(get_caller_address() == user_one, 'bad caller');
}
```
Expand Down

0 comments on commit 83c352b

Please sign in to comment.