Skip to content

Commit

Permalink
Remove schema from Faber, init_issuer_config
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Kovar <miroslav.kovar@absa.africa>
  • Loading branch information
mirgee committed Sep 12, 2023
1 parent 5877c7f commit b2f724d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions aries_vcx/tests/utils/devsetup_faber.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use std::sync::Arc;

use aries_vcx::common::primitives::credential_schema::Schema;
use aries_vcx::core::profile::profile::Profile;
use aries_vcx::global::settings;
use aries_vcx::global::settings::{init_issuer_config, DEFAULT_LINK_SECRET_ALIAS};
use aries_vcx::global::settings::DEFAULT_LINK_SECRET_ALIAS;
use aries_vcx::utils::constants::TRUSTEE_SEED;
use aries_vcx::utils::devsetup::{dev_build_featured_profile, dev_setup_wallet_indy};
use aries_vcx::utils::random::generate_random_seed;
Expand All @@ -12,7 +10,6 @@ use aries_vcx_core::wallet::indy::IndySdkWallet;
pub struct Faber {
pub profile: Arc<dyn Profile>,
pub institution_did: String,
pub schema: Schema,
pub genesis_file_path: String,
}

Expand All @@ -38,16 +35,10 @@ pub async fn create_faber(genesis_file_path: String) -> Faber {

impl Faber {
pub async fn setup(profile: Arc<dyn Profile>, genesis_file_path: String, institution_did: String) -> Faber {
settings::reset_config_values_ariesvcx().unwrap();

// todo: can delete following?
init_issuer_config(&institution_did).unwrap();

let faber = Faber {
genesis_file_path,
profile,
institution_did,
schema: Schema::default(),
};
faber
}
Expand Down

0 comments on commit b2f724d

Please sign in to comment.