Skip to content

Commit

Permalink
handle message in simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
joeymeere committed Nov 6, 2024
1 parent ac98aff commit 1b24e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transaction/simulateEncodedTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const simulateEncodedTransaction = async (
try {
const { message, version } = decodeAndDeserialize(tx);

const transaction = new VersionedTransaction(message);
const transaction = new VersionedTransaction(message.compileToV0Message());

const keys = await getAccountsForSimulation(
connection,
Expand Down

0 comments on commit 1b24e7e

Please sign in to comment.