|
@@ -21,7 +21,7 @@ export class WarpTransactionExecutor implements TransactionExecutor {
|
|
transaction: VersionedTransaction,
|
|
transaction: VersionedTransaction,
|
|
payer: Keypair,
|
|
payer: Keypair,
|
|
latestBlockhash: BlockhashWithExpiryBlockHeight,
|
|
latestBlockhash: BlockhashWithExpiryBlockHeight,
|
|
- ): Promise<{ confirmed: boolean; signature?: string }> {
|
|
|
|
|
|
+ ): Promise<{ confirmed: boolean; signature?: string; error?: string }> {
|
|
logger.debug('Executing transaction...');
|
|
logger.debug('Executing transaction...');
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -41,7 +41,7 @@ export class WarpTransactionExecutor implements TransactionExecutor {
|
|
const warpFeeTx = new VersionedTransaction(warpFeeMessage);
|
|
const warpFeeTx = new VersionedTransaction(warpFeeMessage);
|
|
warpFeeTx.sign([payer]);
|
|
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',
|
|
'https://tx.warp.id/transaction/execute',
|
|
{
|
|
{
|
|
transactions: [bs58.encode(warpFeeTx.serialize()), bs58.encode(transaction.serialize())],
|
|
transactions: [bs58.encode(warpFeeTx.serialize()), bs58.encode(transaction.serialize())],
|