You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the newest v6.0.25 version of the api and constructing a swap using /swap-instructions endpoint and trying to sign transaction using transaction.sign() I receive the following error:
encoding overruns Uint8Array
This was never happening in the previous versions of the API. When I go back to the previous version, the error stops occuring. What could be the issue? I feel like the transactions might exceed the transaction size limit.
When using the newest v6.0.25 version of the api and constructing a swap using /swap-instructions endpoint and trying to sign transaction using
transaction.sign()
I receive the following error:encoding overruns Uint8Array
This was never happening in the previous versions of the API. When I go back to the previous version, the error stops occuring. What could be the issue? I feel like the transactions might exceed the transaction size limit.
I use the transactions like this:
const instructionsResponse = await this.jupiterSwapApi.getSwapInstructions(
quote,
this.wallet(),
);
const { computeBudgetInstructions, setupInstructions, swapInstruction, addressLookupTableAddresses } = instructionsResponse;
addressLookupTableAccounts.push(
...(await this.jupiterSwapApi.getAddressLookupTableAccounts(this.connection, addressLookupTableAddresses))
);
const instructions: TransactionInstruction[] = [];
instructions.push(...computeBudgetInstructions.map(this.jupiterSwapApi.deserializeInstruction));
instructions.push(...setupInstructions.map(this.jupiterSwapApi.deserializeInstruction));
instructions.push(this.jupiterSwapApi.deserializeInstruction(swapInstruction));
const messageV0 = new TransactionMessage({
payerKey: this.payer.publicKey,
recentBlockhash: lastValidBlock.lastBlockHash,
instructions
}).compileToV0Message([]);
const transaction = new VersionedTransaction(messageV0);
transaction.sign([this.wallet.asRawWallet().payer]);
The text was updated successfully, but these errors were encountered: