Skip to content

Commit

Permalink
fix: decoding of TransactionCreate.bytecodeLength to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Feb 21, 2024
1 parent 77bae46 commit 818dfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transactions/src/coders/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class TransactionCreateCoder extends Coder<TransactionCreate, Transaction
let decoded;
let o = offset;

[decoded, o] = new NumberCoder('u16').decode(data, o);
[decoded, o] = new NumberCoder('u32').decode(data, o);
const bytecodeLength = decoded;
[decoded, o] = new NumberCoder('u8').decode(data, o);
const bytecodeWitnessIndex = decoded;
Expand Down

0 comments on commit 818dfc9

Please sign in to comment.