Skip to content

Commit 35bb39f

Browse files
authored
Fix uint32 test
1 parent 9626d69 commit 35bb39f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/transaction.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ describe('Transaction', () => {
7878
});
7979
});
8080

81-
it('.version should be interpreted as an int32le', () => {
81+
it('.version should be interpreted as an uint32le', () => {
8282
const txHex = 'ffffffff0000ffffffff';
8383
const tx = Transaction.fromHex(txHex);
84-
assert.strictEqual(-1, tx.version);
84+
assert.strictEqual(0xffffffff, tx.version);
8585
assert.strictEqual(0xffffffff, tx.locktime);
8686
});
8787
});

0 commit comments

Comments
 (0)