Skip to content

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

test(module-pins): cover wallet source and artifact version match

Steven Enamakel30181150895b
diff --git a/scripts/__tests__/module-pins.test.mjs b/scripts/__tests__/module-pins.test.mjs
index 0049940f78..d246d334e6 100644
--- a/scripts/__tests__/module-pins.test.mjs
+++ b/scripts/__tests__/module-pins.test.mjs
@@ -125,6 +125,16 @@ test("voice source release matches the artifact used for recording summaries", (
);
});
+test("wallet source release matches the loaded wallet artifact", () => {
+ const record = [...parseRecords(readRegistry()).values()].find(
+ (record) => record.id === "tinywallet",
+ );
+ assert.ok(record, "wallet adapter requires a registered module");
+ const source = readFileSync(join(REPO_ROOT, "vendor/tinywallet/Cargo.toml"), "utf8");
+ const version = source.match(/^version\s*=\s*"([^"]+)"/m)?.[1];
+ assert.equal(version, record.version, "wallet source must match its loaded artifact");
+});
+
// ── Registry parsing ──────────────────────────────────────────────────────────
test("parses every record `ALL` lists out of the real registry", () => {