Skip to content

Commit

Permalink
dependency cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Sep 5, 2024
1 parent f634b3f commit a725166
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion framework/snippets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ keywords = ["multiversx", "blockchain", "contract", "snippets"]
categories = ["cryptography::cryptocurrencies"]

[dependencies]
tokio = { version = "1.24" }
hex = "0.4"
base64 = "0.22"
log = "0.4.17"
Expand Down
2 changes: 1 addition & 1 deletion framework/snippets/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pub use crate::{
pub use multiversx_sdk::{data::keystore::InsertPassword, wallet::Wallet};

pub use env_logger;
pub use tokio;
pub use multiversx_sdk::tokio;
2 changes: 1 addition & 1 deletion framework/snippets/src/interactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Interactor {

pub async fn sleep(&mut self, duration: Duration) {
self.waiting_time_ms += duration.as_millis() as u64;
tokio::time::sleep(duration).await;
crate::tokio::time::sleep(duration).await;
}

pub async fn with_tracer<P: AsRef<Path>>(mut self, path: P) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion framework/snippets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub use multi::*;
pub use multiversx_sc_scenario::{self, multiversx_sc};
pub use multiversx_sdk as erdrs; // TODO: remove
pub use multiversx_sdk as sdk;
pub use tokio;
pub use multiversx_sdk::tokio;

/// Imports normally needed in interactors, grouped together.
pub mod imports;
3 changes: 3 additions & 0 deletions sdk/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ pub mod data;
pub mod gateway;
pub mod utils;
pub mod wallet;

/// Re-exported for convenience.
pub use tokio;

0 comments on commit a725166

Please sign in to comment.