diff --git a/contracts/marketplace/src/execute.rs b/contracts/marketplace/src/execute.rs index 9d578519..4ded2726 100644 --- a/contracts/marketplace/src/execute.rs +++ b/contracts/marketplace/src/execute.rs @@ -1286,7 +1286,7 @@ fn store_ask(store: &mut dyn Storage, ask: &Ask) -> StdResult<()> { asks().save(store, ask_key(&ask.collection, ask.token_id), ask) } -/// Checks to enfore only NFT owner can call +/// Checks to enforce only NFT owner can call fn only_owner( deps: Deps, info: &MessageInfo, diff --git a/contracts/marketplace/src/helpers.rs b/contracts/marketplace/src/helpers.rs index 21e68a01..84ad91f7 100644 --- a/contracts/marketplace/src/helpers.rs +++ b/contracts/marketplace/src/helpers.rs @@ -83,7 +83,7 @@ mod tests { #[test] fn test_map_validate() { let deps = mock_dependencies(); - let adddreses = map_validate( + let addresses = map_validate( &deps.api, &[ "operator1".to_string(), @@ -94,7 +94,7 @@ mod tests { .unwrap(); assert_eq!(3, adddreses.len()); - let adddreses = map_validate( + let addresses = map_validate( &deps.api, &[ "operator1".to_string(), @@ -107,7 +107,7 @@ mod tests { .unwrap(); assert_eq!( - adddreses, + addresses, vec![ Addr::unchecked("operator1".to_string()), Addr::unchecked("operator2".to_string()), diff --git a/contracts/marketplace/src/testing/tests/admin.rs b/contracts/marketplace/src/testing/tests/admin.rs index 67151352..a340f145 100644 --- a/contracts/marketplace/src/testing/tests/admin.rs +++ b/contracts/marketplace/src/testing/tests/admin.rs @@ -303,7 +303,7 @@ fn try_start_trading_time() { .unwrap(); assert_eq!(res.owner, bidder.to_string()); - // Creator tries to accept accept bid on collection 2 (should fail) + // Creator tries to accept bid on collection 2 (should fail) let accept_bid_msg = ExecuteMsg::AcceptCollectionBid { collection: collection_2.to_string(), token_id: minter_2_token_id_0, @@ -340,7 +340,7 @@ fn try_start_trading_time() { // move time to start trading time setup_block_time(&mut router, start_time.plus_seconds(1).nanos(), None); - // Creator tries to accept accept bid on collection 2 should work now + // Creator tries to accept bid on collection 2 should work now let accept_bid_msg = ExecuteMsg::AcceptBid { collection: collection_2.to_string(), token_id: minter_2_token_id_0, diff --git a/contracts/marketplace/src/testing/tests/asks.rs b/contracts/marketplace/src/testing/tests/asks.rs index 78c867f7..27425b5f 100644 --- a/contracts/marketplace/src/testing/tests/asks.rs +++ b/contracts/marketplace/src/testing/tests/asks.rs @@ -1277,7 +1277,7 @@ fn try_sync_ask() { .unwrap(); assert_eq!(res.asks.len(), 0); - // Approving again should have a success sync ask after + // Approving again should have a successful sync ask after approve(&mut router, &creator, &collection, &marketplace, token_id); // SyncAsk should be ok diff --git a/contracts/marketplace/src/testing/tests/finders_fee_and_royalties.rs b/contracts/marketplace/src/testing/tests/finders_fee_and_royalties.rs index 72369af4..16a716af 100644 --- a/contracts/marketplace/src/testing/tests/finders_fee_and_royalties.rs +++ b/contracts/marketplace/src/testing/tests/finders_fee_and_royalties.rs @@ -405,7 +405,7 @@ fn try_zero_royalties() { bidder_native_balances, coins(INITIAL_BALANCE - 100, NATIVE_DENOM) ); - // seller should recive full amount minus fairburn (2%) + // seller should receive full amount minus fairburn (2%) let minter_balance = router.wrap().query_all_balances(minter.clone()).unwrap(); assert_eq!( minter_balance,