diff --git a/transactions/jito-rpc-transaction-executor.ts b/transactions/jito-rpc-transaction-executor.ts index bcb8da1..cac2739 100644 --- a/transactions/jito-rpc-transaction-executor.ts +++ b/transactions/jito-rpc-transaction-executor.ts @@ -44,7 +44,7 @@ export class JitoTransactionExecutor implements TransactionExecutor { transaction: VersionedTransaction, payer: Keypair, latestBlockhash: BlockhashWithExpiryBlockHeight, - ): Promise<{ confirmed: boolean; signature?: string }> { + ): Promise<{ confirmed: boolean; signature?: string; error?: string }> { logger.debug('Starting Jito transaction execution...'); this.JitoFeeWallet = this.getRandomValidatorKey(); // Update wallet key each execution logger.trace(`Selected Jito fee wallet: ${this.JitoFeeWallet.toBase58()}`); diff --git a/transactions/warp-transaction-executor.ts b/transactions/warp-transaction-executor.ts index da4245f..be26786 100644 --- a/transactions/warp-transaction-executor.ts +++ b/transactions/warp-transaction-executor.ts @@ -21,7 +21,7 @@ export class WarpTransactionExecutor implements TransactionExecutor { transaction: VersionedTransaction, payer: Keypair, latestBlockhash: BlockhashWithExpiryBlockHeight, - ): Promise<{ confirmed: boolean; signature?: string }> { + ): Promise<{ confirmed: boolean; signature?: string; error?: string }> { logger.debug('Executing transaction...'); try { @@ -41,7 +41,7 @@ export class WarpTransactionExecutor implements TransactionExecutor { const warpFeeTx = new VersionedTransaction(warpFeeMessage); warpFeeTx.sign([payer]); - const response = await axios.post<{ confirmed: boolean; signature: string, error?: string }>( + const response = await axios.post<{ confirmed: boolean; signature: string; error?: string }>( 'https://tx.warp.id/transaction/execute', { transactions: [bs58.encode(warpFeeTx.serialize()), bs58.encode(transaction.serialize())],