use miden_objects::account::{AccountCode, AccountComponent, AccountType};
use crate::testing::mock_account_code::MockAccountCodeExt;
pub struct MockFaucetComponent;
impl From<MockFaucetComponent> for AccountComponent {
fn from(_: MockFaucetComponent) -> Self {
AccountComponent::new(AccountCode::mock_faucet_library(), vec![])
.expect("mock faucet component should satisfy the requirements of a valid account component")
.with_supported_type(AccountType::FungibleFaucet)
.with_supported_type(AccountType::NonFungibleFaucet)
}
}