Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ptisserand committed Jun 12, 2024
1 parent 045ef10 commit 0a8924c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/ark_starknet/src/executor.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ mod executor {
}

if order_info.order_type != OrderType::Auction {
assert!(order_info.offerer != fulfiller, "Orderer and fulfiller must be different");
assert!(order_info.offerer != fulfiller, "Offerer and fulfiller must be different");
}

let contract_address = get_contract_address();
Expand Down
10 changes: 5 additions & 5 deletions contracts/ark_starknet/tests/integration/fulfill_order.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ fn test_fulfill_order_fulfiller_not_approved() {


#[test]
#[should_panic(expected: ("Orderer and fulfiller must be different",))]
fn test_fulfill_order_fulfiller_same_as_orderer_erc20_to_erc721() {
#[should_panic(expected: ("Offerer and fulfiller must be different",))]
fn test_fulfill_order_fulfiller_same_as_offerer_erc20_to_erc721() {
let (executor_address, erc20_address, nft_address) = setup();

let token_id: u256 = Erc721Dispatcher { contract_address: nft_address }
Expand Down Expand Up @@ -376,8 +376,8 @@ fn test_fulfill_order_fulfiller_same_as_orderer_erc20_to_erc721() {
}

#[test]
#[should_panic(expected: ("Orderer and fulfiller must be different",))]
fn test_fulfill_listing_order_fulfiller_same_as_orderer_erc721_to_erc20() {
#[should_panic(expected: ("Offerer and fulfiller must be different",))]
fn test_fulfill_listing_order_fulfiller_same_as_offerer_erc721_to_erc20() {
let (executor_address, erc20_address, nft_address) = setup();
let start_amount = 10_000_000;

Expand Down Expand Up @@ -405,7 +405,7 @@ fn test_fulfill_listing_order_fulfiller_same_as_orderer_erc721_to_erc20() {
}

#[test]
fn test_fulfill_auction_order_fulfiller_same_as_orderer() {
fn test_fulfill_auction_order_fulfiller_same_as_offerer() {
let (executor_address, erc20_address, nft_address) = setup();
let start_amount = 10_000_000;
let end_amount = 20_000_000;
Expand Down

0 comments on commit 0a8924c

Please sign in to comment.