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