Skip to content

Commit 829ed5e

Browse files
committed
chore: clean up
1 parent 5258d96 commit 829ed5e

File tree

5 files changed

+14
-67
lines changed

5 files changed

+14
-67
lines changed

Cargo.lock

Lines changed: 0 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,4 @@ debug = true
254254
[patch.crates-io]
255255
serde-reflection = { git = "https://github.com/aptos-labs/serde-reflection", rev = "73b6bbf748334b71ff6d7d09d06a29e3062ca075" }
256256
merlin = { git = "https://github.com/aptos-labs/merlin" }
257-
x25519-dalek = { git = "https://github.com/aptos-labs/x25519-dalek", branch = "zeroize_v1" }
258-
futures = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
259-
futures-channel = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
260-
futures-executor = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
261-
futures-core = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
262-
futures-util = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
263-
futures-sink = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
264-
futures-io = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
265-
futures-task = { git = "https://github.com/aptos-labs/futures-rs", branch = "backport" }
257+
x25519-dalek = { git = "https://github.com/aptos-labs/x25519-dalek", branch = "zeroize_v1" }

checks/migrator/checks/pre-l1-merge/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ publish = { workspace = true }
99
rust-version = { workspace = true }
1010

1111
[dependencies]
12-
hex = { workspace = true }
1312
mtma-types = { workspace = true }
1413
mtma-migrator-types = { workspace = true }
1514
mtma-migrator-test-types = { workspace = true }

checks/migrator/checks/pre-l1-merge/src/pre_l1_merge.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,15 @@
22
pub mod test {
33

44
use anyhow::Context;
5-
use mtma_node_test_types::criterion::movement_executor::maptos_opt_executor::aptos_types::account_address::AccountAddress;
5+
use movement_core::Movement;
66
use mtma_migrator_pre_l1_merge_core::config::Config as PreL1MergeConfig;
77
use mtma_migrator_test_accounts_equal_criterion::AccountsEqual;
88
use mtma_migrator_test_types::check::checked_migration;
9-
use mtma_migrator_types::migrator::{movement_migrator::{Overlays, MovementMigrator, Runner}};
9+
use mtma_migrator_types::migrator::movement_migrator::{MovementMigrator, Overlays, Runner};
1010
use mtma_node_test_types::prelude::Prelude;
11-
use std::str::FromStr;
12-
use tracing::info;
13-
use movement_core::Movement;
14-
use mtma_types::movement::movement_config::Config as MovementConfig;
15-
use hex;
1611
use mtma_types::movement::aptos_sdk::types::account_config::aptos_test_root_address;
12+
use mtma_types::movement::movement_config::Config as MovementConfig;
13+
use tracing::info;
1714

1815
#[tokio::test(flavor = "multi_thread")]
1916
#[tracing_test::traced_test]
@@ -56,7 +53,7 @@ pub mod test {
5653

5754
// wait for the rest client to be ready
5855
info!("Waiting for REST client to be ready (timeout: 600s)");
59-
let mut rest_api_url = movement_migrator
56+
let rest_api_url = movement_migrator
6057
.wait_for_rest_api_url(tokio::time::Duration::from_secs(600))
6158
.await?;
6259
info!("REST API URL: {}", rest_api_url);
@@ -112,8 +109,7 @@ pub mod test {
112109
}
113110
info!("Migration succeeded");
114111

115-
// Let the task run in the background and let the Drop implementation handle the shutdown
116-
drop(movement_migrator_task);
112+
kestrel::end!(movement_migrator_task)?;
117113
}
118114

119115
// exit the test is fine when you only have one test per crate because when cargo test is run across a workspace, it actually multi-processes the tests by crate

migration/core/migrator/pre-l1-merge/src/migrate/config.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
use crate::Migrate;
22
use anyhow::Context;
3-
use aptos_framework_pre_l1_merge_release::maptos_framework_release_util::LocalAccountReleaseSigner;
4-
use aptos_framework_pre_l1_merge_release::maptos_framework_release_util::OverrideAccountAddressReleaseSigner;
3+
use aptos_framework_pre_l1_merge_release::maptos_framework_release_util::{
4+
LocalAccountReleaseSigner, OverrideAccountAddressReleaseSigner,
5+
};
56
use clap::Parser;
6-
use movement_core::movement::{Celestia, Eth};
7-
use movement_core::Config as MovementCoreConfig;
8-
use movement_signer::key::TryFromCanonicalString;
9-
use movement_signer_loader::identifiers::{local::Local, SignerIdentifier};
7+
use movement_core::{
8+
movement::{Celestia, Eth},
9+
Config as MovementCoreConfig,
10+
};
1011
use mtma_node_null_core::Config as MtmaNodeNullConfig;
1112
use mtma_types::movement::aptos_sdk::types::{
1213
account_address::AccountAddress, account_config::aptos_test_root_address, LocalAccount,

0 commit comments

Comments
 (0)