From 15151c94fe77e0622afe184929aa59808e1d8aad Mon Sep 17 00:00:00 2001 From: Samuel Manzanera Date: Fri, 20 Dec 2024 13:55:19 +0100 Subject: [PATCH] fix code serialization issue --- src/transaction_builder.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transaction_builder.ts b/src/transaction_builder.ts index 19be7e3..f835f5d 100644 --- a/src/transaction_builder.ts +++ b/src/transaction_builder.ts @@ -415,6 +415,7 @@ export default class TransactionBuilder { intToUint32Array(VERSION), this.address, Uint8Array.from([getTransactionTypeId(this.type)]), + intToUint32Array(0), // Default code size bufContract, bufContentSize, new TextEncoder().encode(this.data.content),