Skip to content

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

test(web3): gate contract version assert and add x402 stub imports

Steven Enamakelc467d99096f4
diff --git a/crates/openhuman-core/src/modules/registry_tests.rs b/crates/openhuman-core/src/modules/registry_tests.rs
index e563b58f46..080087b0d4 100644
--- a/crates/openhuman-core/src/modules/registry_tests.rs
+++ b/crates/openhuman-core/src/modules/registry_tests.rs
@@ -23,6 +23,7 @@ fn tinycomputer_registry_matches_bus_contract_and_published_release() {
fn tinywallet_registry_matches_the_verified_v019_release_manifest() {
let wallet = find("tinywallet").expect("compiled TinyWallet module");
assert_eq!(wallet.version, "0.19.0");
+ #[cfg(feature = "web3")]
assert_eq!(tinywallet_bus::CONTRACT_VERSION, (1, 13));
assert_eq!(
wallet.release_url,
diff --git a/crates/openhuman-core/src/web3/x402/stub_tests.rs b/crates/openhuman-core/src/web3/x402/stub_tests.rs
index 3e661c20ec..410e451665 100644
--- a/crates/openhuman-core/src/web3/x402/stub_tests.rs
+++ b/crates/openhuman-core/src/web3/x402/stub_tests.rs
@@ -1,4 +1,6 @@
use super::*;
+use crate::web3::x402::init_ledger;
+use std::path::Path;
#[test]
fn init_ledger_is_callable_noop() {