Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style(wallet): reformat re-exports and test assertions

Steven Enamakela88e0153c6e4
diff --git a/crates/openhuman-core/src/web3/wallet/mod.rs b/crates/openhuman-core/src/web3/wallet/mod.rs
index 36ce50285e..90bfc73f64 100644
--- a/crates/openhuman-core/src/web3/wallet/mod.rs
+++ b/crates/openhuman-core/src/web3/wallet/mod.rs
@@ -75,9 +75,8 @@ pub(crate) use ops::secret_material;
pub use ops::{
derive_recovery_material, generate_recovery_phrase, reveal_recovery_phrase, setup, status,
validate_recovery_phrase, GeneratedRecoveryPhrase, RecoveryPhraseValidation,
- RevealRecoveryPhraseResult, WalletAccount, WalletChain,
- WalletRecoveryMaterial, WalletSetupParams, WalletSetupSource, WalletStatus,
- WALLET_NOT_CONFIGURED_MESSAGE,
+ RevealRecoveryPhraseResult, WalletAccount, WalletChain, WalletRecoveryMaterial,
+ WalletSetupParams, WalletSetupSource, WalletStatus, WALLET_NOT_CONFIGURED_MESSAGE,
};
#[cfg(feature = "web3")]
pub use schemas::{
diff --git a/crates/openhuman-core/src/web3/wallet/schemas_tests.rs b/crates/openhuman-core/src/web3/wallet/schemas_tests.rs
index 30fd3c8d66..bbbcbae94d 100644
--- a/crates/openhuman-core/src/web3/wallet/schemas_tests.rs
+++ b/crates/openhuman-core/src/web3/wallet/schemas_tests.rs
@@ -15,21 +15,33 @@ fn recovery_phrase_controllers_are_registered_with_the_expected_inputs() {
let generate = wallet_schemas("generate_mnemonic");
assert_eq!(generate.namespace, "wallet");
assert_eq!(
- generate.inputs.iter().map(|field| field.name).collect::<Vec<_>>(),
+ generate
+ .inputs
+ .iter()
+ .map(|field| field.name)
+ .collect::<Vec<_>>(),
vec!["wordCount"]
);
let validate = wallet_schemas("validate_mnemonic");
assert_eq!(validate.namespace, "wallet");
assert_eq!(
- validate.inputs.iter().map(|field| field.name).collect::<Vec<_>>(),
+ validate
+ .inputs
+ .iter()
+ .map(|field| field.name)
+ .collect::<Vec<_>>(),
vec!["phrase"]
);
assert!(validate.inputs[0].required);
let derive = wallet_schemas("derive_recovery_material");
assert_eq!(
- derive.inputs.iter().map(|field| field.name).collect::<Vec<_>>(),
+ derive
+ .inputs
+ .iter()
+ .map(|field| field.name)
+ .collect::<Vec<_>>(),
vec!["phrase"]
);
}