Given this a mock versioned message
{
addressTableLookups: [...],
compiledInstructions: [...]
}
I try with versioned transaction without ATL this code below ran successfully.
const messageV0 = new MessageV0(message);
console.log('decompiled', TransactionMessage.decompile(messageV0));
But when the transaction does have ATL includes in addressTableLookups
the decompile throw an error
index.js:12623 Uncaught (in promise) Error: Failed to get account keys because address table lookups were not resolved
at MessageV0.getAccountKeys (index.js:12623:13)
at TransactionMessage.decompile (index.js:13492:33)
I think because the decompile the second argument in decompile
method but how to convert addressTableLookups
in MessageV0
object to the ATL when decompiling
addressTableLookups
is empty