Skip to content

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

fix(tests): update x402 tool reference after API rename

Steven Enamakel2643c07daa56
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 4384f970b2..66b8f5b832 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -131,7 +131,7 @@ required-features = ["modules"]
[[test]]
name = "x402_twit_sh_live"
path = "../../tests/x402_twit_sh_live.rs"
-# `x402::tools::X402RequestTool` — the x402 domain is part of the web3 family.
+# `x402::request_tool()` — the x402 domain is part of the web3 family.
required-features = ["web3"]
[[test]]
diff --git a/tests/x402_twit_sh_live.rs b/tests/x402_twit_sh_live.rs
index 3bb306b696..647a080e40 100644
--- a/tests/x402_twit_sh_live.rs
+++ b/tests/x402_twit_sh_live.rs
@@ -15,7 +15,7 @@ async fn x402_pay_twit_sh_for_hal_finney_tweet() {
let tmp = tempfile::tempdir().unwrap();
x402::init_ledger(tmp.path(), "test-session");
- let tool = x402::tools::X402RequestTool::new();
+ let tool = x402::request_tool();
let result = tool
.execute(json!({
"url": "https://x402.twit.sh/tweets/by/id?id=1110302988",