Skip to content

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

refactor(wallet): tidy imports and call formatting

Steven Enamakel66175683896c
diff --git a/crates/openhuman-core/src/modules/wallet_host.rs b/crates/openhuman-core/src/modules/wallet_host.rs
index b9880ec455..bb90314120 100644
--- a/crates/openhuman-core/src/modules/wallet_host.rs
+++ b/crates/openhuman-core/src/modules/wallet_host.rs
@@ -90,8 +90,6 @@ pub(crate) fn bind_endpoint_references(
service: &str,
references: &[HostEndpointReference],
) -> Result<(), String> {
- use tinywallet_bus::wire::RpcEndpointKey;
-
let mut resolved = HashMap::new();
for endpoint in references {
let url = crate::web3::wallet::endpoints::override_for_endpoint(endpoint.key).ok_or_else(
diff --git a/crates/openhuman-core/src/web3/wallet/tools.rs b/crates/openhuman-core/src/web3/wallet/tools.rs
index 3192598021..4f8b4b5d26 100644
--- a/crates/openhuman-core/src/web3/wallet/tools.rs
+++ b/crates/openhuman-core/src/web3/wallet/tools.rs
@@ -77,12 +77,8 @@ impl Tool for WalletModuleTool {
};
let result = match self.name() {
"wallet_tx_status" => outcome_value(
- crate::web3::wallet::tx_status(
- query.chain,
- query.evm_network,
- &query.hash,
- )
- .await,
+ crate::web3::wallet::tx_status(query.chain, query.evm_network, &query.hash)
+ .await,
),
"wallet_tx_receipt" => outcome_value(
crate::web3::wallet::tx_receipt(
@@ -93,12 +89,8 @@ impl Tool for WalletModuleTool {
.await,
),
_ => outcome_value(
- crate::web3::wallet::lookup_tx(
- query.chain,
- query.evm_network,
- &query.hash,
- )
- .await,
+ crate::web3::wallet::lookup_tx(query.chain, query.evm_network, &query.hash)
+ .await,
),
};
result