Skip to content

Commit

Permalink
lints and refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Aug 13, 2024
1 parent 4e4ae75 commit 7873faf
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/collections/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use soroban_sdk::{contract, contractimpl, log, testutils, vec, Address, Bytes, Env, String, Vec};
use soroban_sdk::{contract, contractimpl, log, vec, Address, Bytes, Env, String, Vec};

use crate::{
error::ContractError,
Expand Down
2 changes: 1 addition & 1 deletion contracts/collections/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ mod error;
mod storage;

#[cfg(test)]
mod tests;
mod test;
1 change: 1 addition & 0 deletions contracts/collections/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ pub mod utils {
Ok(())
}

#[allow(dead_code)]
pub fn get_config(env: &Env) -> Result<Config, ContractError> {
if let Some(config) = env.storage().persistent().get(&DataKey::Config) {
Ok(config)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn proper_initialization() {
let name = &String::from_str(&env, "Stellar kitties");

let collections_client =
initialize_collection_contract(&env, Some(&admin), Some(&name), Some(&uri_value));
initialize_collection_contract(&env, Some(&admin), Some(name), Some(&uri_value));

let actual_admin_addr = collections_client.show_admin();
assert_eq!(admin, actual_admin_addr);
Expand Down

0 comments on commit 7873faf

Please sign in to comment.