Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
CBoYXD committed Dec 17, 2024
1 parent dd1cebf commit b06f540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/vault.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ mod Vault {
///
/// * When caller don't equal to user or owner
/// * If the current amount is less than the amount to withdraw
/// * When deposit contract address is zero
/// * When user address is zero
///
/// # Events
///
Expand Down
2 changes: 1 addition & 1 deletion tests/test_vault.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn test_add_deposit_contract() {

#[test]
#[should_panic(expected: ('Deposit contract is zero',))]
fn test_deposit_contract_address_is_zero() {
fn test_add_deposit_contract_address_is_zero() {
let suite = setup_test_suite();
let user: ContractAddress = MOCK_USER.try_into().unwrap();
let deposit_address: ContractAddress = 0.try_into().unwrap();
Expand Down

0 comments on commit b06f540

Please sign in to comment.