This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
[web3.js] Discrepancy between legacy Transaction API and new VersionedTransaction API #28900
Labels
Milestone
Problem
Version:
@solana/web3.js@1.66.2
Combination of
VersionedTransaction.deserialize
andTransactionMessage.decompile
produces different result from the legacyTransaction.from
API when deserializing the same exact transaction.Reproduction below (note the difference in the
isWritable
flag of the lastkey
)https://codesandbox.io/p/sandbox/funny-ride-1zmikd
While not 100% sure, I believe the legacy API produces the correct result and the new API is being wrong.
Serialized transaction
The text was updated successfully, but these errors were encountered: