Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: import fix for drive refactoring #1959

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/check-features/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn main() {
let crates = [
("rs-sdk", vec![]),
("rs-drive-abci", vec![]),
("rs-dpp", vec!["documents-faker"]),
("rs-dpp", vec![]),
("rs-drive", vec![]),
("rs-drive-proof-verifier", vec![]),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ impl Drive {

#[cfg(test)]
mod tests {
use crate::drive::credit_pools::epochs::*;

use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure;

Expand Down
8 changes: 4 additions & 4 deletions packages/rs-drive/src/util/test_helpers/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Defines helper functions pertinent to setting up Drive.
//!

#[cfg(test)]
#[cfg(feature = "full")]
use crate::config::DriveConfig;
use crate::drive::Drive;
use dpp::block::block_info::BlockInfo;
Expand All @@ -16,7 +16,7 @@ use dpp::document::Document;

use dpp::version::PlatformVersion;
use grovedb::TransactionArg;
#[cfg(test)]
#[cfg(feature = "full")]
use tempfile::TempDir;

/// Struct with options regarding setting up fee pools.
Expand All @@ -34,7 +34,7 @@ impl Default for SetupFeePoolsOptions {
}
}

#[cfg(test)]
#[cfg(feature = "full")]
/// Sets up Drive using a temporary directory and the optionally given Drive configuration settings.
pub fn setup_drive(drive_config: Option<DriveConfig>) -> Drive {
let tmp_dir = TempDir::new().unwrap();
Expand All @@ -44,7 +44,7 @@ pub fn setup_drive(drive_config: Option<DriveConfig>) -> Drive {
drive
}

#[cfg(test)]
#[cfg(feature = "full")]
/// Sets up Drive using a temporary directory and the default initial state structure.
pub fn setup_drive_with_initial_state_structure() -> Drive {
let drive = setup_drive(Some(DriveConfig {
Expand Down
Loading
Loading