Skip to content

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

fix(execution): validate transaction nonce before submission

Steven Enamakel8b6ed5d63c29
diff --git a/crates/openhuman-core/src/web3/wallet/execution/validate.rs b/crates/openhuman-core/src/web3/wallet/execution/validate.rs
index 918661b223..87d8126ed4 100644
--- a/crates/openhuman-core/src/web3/wallet/execution/validate.rs
+++ b/crates/openhuman-core/src/web3/wallet/execution/validate.rs
@@ -12,7 +12,7 @@ use super::LOG_PREFIX;
/// Test-only. Production never holds a secp256k1 secret: the wallet module
/// derives the key and reports the public half through `DeriveAccount`.
#[cfg(test)]
-pub(super) fn compressed_public_key(secret: &[u8]) -> Result<Vec<u8>, String> {
+pub(crate) fn compressed_public_key(secret: &[u8]) -> Result<Vec<u8>, String> {
let key = k256::ecdsa::SigningKey::from_slice(secret)
.map_err(|_| "derived key is not a valid secp256k1 scalar".to_string())?;
Ok(key