Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
qalisander committed Sep 24, 2024
1 parent a9f0231 commit eed2db5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
12 changes: 5 additions & 7 deletions contracts/src/token/erc721/extensions/consecutive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfers_from_incorrect_owner(
fn error_when_safe_transfer_from_incorrect_owner(
contract: Erc721Consecutive,
) {
let alice = msg::sender();
Expand All @@ -1105,9 +1105,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfers_nonexistent_token(
contract: Erc721Consecutive,
) {
fn error_when_safe_transfer_nonexistent_token(contract: Erc721Consecutive) {
let alice = msg::sender();
let token_id = random_token_id();
let err = contract
Expand All @@ -1123,7 +1121,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfers_to_invalid_receiver(
fn error_when_safe_transfer_to_invalid_receiver(
contract: Erc721Consecutive,
) {
let alice = msg::sender();
Expand Down Expand Up @@ -1172,7 +1170,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfer_internal_transfers_to_invalid_receiver(
fn error_when_internal_safe_transfer_to_invalid_receiver(
contract: Erc721Consecutive,
) {
let alice = msg::sender();
Expand Down Expand Up @@ -1204,7 +1202,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfer_internal_transfers_from_incorrect_owner(
fn error_when_internal_safe_transfer_from_incorrect_owner(
contract: Erc721Consecutive,
) {
let alice = msg::sender();
Expand Down
10 changes: 4 additions & 6 deletions contracts/src/token/erc721/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfers_to_invalid_receiver(contract: Erc721) {
fn error_when_safe_transfer_to_invalid_receiver(contract: Erc721) {
let alice = msg::sender();
let token_id = random_token_id();
let invalid_receiver = Address::ZERO;
Expand Down Expand Up @@ -2304,9 +2304,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfer_internal_transfers_to_invalid_receiver(
contract: Erc721,
) {
fn error_when_internal_safe_transfer_to_invalid_receiver(contract: Erc721) {
let alice = msg::sender();
let token_id = random_token_id();
let invalid_receiver = Address::ZERO;
Expand Down Expand Up @@ -2336,7 +2334,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfer_internal_transfers_from_incorrect_owner(
fn error_when_internal_safe_transfer_from_incorrect_owner(
contract: Erc721,
) {
let alice = msg::sender();
Expand Down Expand Up @@ -2364,7 +2362,7 @@ mod tests {
}

#[motsu::test]
fn error_when_safe_transfers_nonexistent_token(contract: Erc721) {
fn error_when_safe_transfer_nonexistent_token(contract: Erc721) {
let alice = msg::sender();
let token_id = random_token_id();
let err = contract
Expand Down

0 comments on commit eed2db5

Please sign in to comment.