Skip to content

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

fix(x402): capture config for async summary call

Steven Enamakel4fd1f50d362e
diff --git a/crates/openhuman-core/src/modules/x402_service.rs b/crates/openhuman-core/src/modules/x402_service.rs
index 0a18d1e7da..0b389e31d8 100644
--- a/crates/openhuman-core/src/modules/x402_service.rs
+++ b/crates/openhuman-core/src/modules/x402_service.rs
@@ -117,9 +117,10 @@ pub(crate) async fn summary(
config: &Config,
) -> Result<X402DetailedSpendingSummary, WalletCallError> {
let config = config.clone();
- with_service(&config, |service| async move {
+ let operation_config = config.clone();
+ with_service(&config, move |service| async move {
wallet::call(
- &config,
+ &operation_config,
methods::X402_SPENDING_SUMMARY_DETAILED,
tinywallet_bus::wire::X402SummaryRequest { service },
)