Skip to content

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

test(x402): pass dispatch context to http request tool

Steven Enamakel241bc29029f8
diff --git a/tests/x402_twit_sh_live.rs b/tests/x402_twit_sh_live.rs
index b4a96f5a3d..8d16a4ce5a 100644
--- a/tests/x402_twit_sh_live.rs
+++ b/tests/x402_twit_sh_live.rs
@@ -27,7 +27,13 @@ async fn x402_pay_twit_sh_for_hal_finney_tweet() {
..SecurityPolicy::default()
});
let tool =
- openhuman_core::tools::http_request_tool(security, vec!["x402.twit.sh".into()], 0, 0);
+ openhuman_core::tools::http_request_tool(
+ &openhuman_core::core::runtime::DispatchCtx::process_default(),
+ security,
+ vec!["x402.twit.sh".into()],
+ 0,
+ 0,
+ );
let result = tool
.execute(json!({
"url": "https://x402.twit.sh/tweets/by/id?id=1110302988",