Skip to content

Commit 38c86ed

Browse files
OttoAllmendingerllm-git
andcommitted
fix(wasm-solana): correct expected tx.id values in test
Update test assertions to check for undefined instead of "UNSIGNED" for the initial transaction ID. Issue: BTC-0 Co-authored-by: llm-git <llm-git@ttll.de>
1 parent 240d1a0 commit 38c86ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/wasm-solana/test/versionedBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ describe("buildFromVersionedData", () => {
153153
const tx = buildFromVersionedData(data);
154154

155155
// Initially unsigned
156-
assert.strictEqual(tx.id, "UNSIGNED");
156+
assert.strictEqual(tx.id, undefined);
157157

158158
// Add signature
159159
const signature = new Uint8Array(64);
160160
for (let i = 0; i < 64; i++) signature[i] = i + 1;
161161
tx.addSignature(feePayer, signature);
162162

163163
// Now signed
164-
assert.notStrictEqual(tx.id, "UNSIGNED");
164+
assert.notStrictEqual(tx.id, undefined);
165165
assert.ok(tx.id.length > 20);
166166
});
167167
});

0 commit comments

Comments
 (0)