Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tasiov committed Oct 11, 2024
1 parent 132c151 commit 49a9a37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ fn try_set_bid() {
finder: None,
},
};
let response =
app.execute_contract(bidder.clone(), marketplace.clone(), &set_bid, &[bid_price]);
let response = app.execute_contract(
bidder.clone(),
marketplace.clone(),
&set_bid,
&[coin(1, NATIVE_DENOM)],
);
assert_error(
response,
ContractError::InvalidInput("order price must be greater than 0".to_string()).to_string(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ fn try_set_collection_bid() {
bidder.clone(),
marketplace.clone(),
&set_collection_bid,
&[collection_bid_price],
&[coin(1, NATIVE_DENOM)],
);
assert_error(
response,
ContractError::InvalidInput("invalid denom".to_string()).to_string(),
ContractError::InvalidInput("order price must be greater than 0".to_string()).to_string(),
);

// Create collection_bid succeeds, even when overpaid
Expand Down

0 comments on commit 49a9a37

Please sign in to comment.