Skip to content

[12.0.0-alpha.2: web-sdk: AccountTransactionV0.serializeBlockItem] #613

@Torakushi

Description

@Torakushi

Bug Description

there is an inconsistency between the old AccountTransaction Behavior and the new AccountTransactionV0

Before, when serializing an AccountTransaction for submission, we used serializeAccountTransactionForSubmission.

Now AccountTransactionV0 has serializeBlockItem which should "Serializes a version 0 account transaction as a block item for submission to the chain."

But the AccountTransactionV0 doesn't includes the encoded version like in AccountTransaction

      const t = '0x' + Buffer.from(AccountTransactionV0.serializeBlockItem(tx)).toString('hex')
     [......]
      const buf = Buffer.from(t, 'hex');
      console.log(deserializeTransaction(new Uint8Array(buf).buffer))

should work

Versions

12.0.0-alpha.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions