add new field to postSendTxCallback

This commit is contained in:
Adrian Brzeziński 2024-07-05 02:25:26 +02:00
parent 204d79ff13
commit 6c03fe56aa
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ import {
Signer,
SystemProgram,
TransactionInstruction,
VersionedTransaction,
} from '@solana/web3.js';
import bs58 from 'bs58';
import copy from 'fast-copy';
@ -130,6 +131,7 @@ export type MangoClientOptions = {
export type TxCallbackOptions = {
txid: string;
txSignatureBlockHash: LatestBlockhash;
instructions?: VersionedTransaction;
};
export class MangoClient {

View File

@ -142,6 +142,7 @@ export async function sendTransaction(
opts.postSendTxCallback({
txid: signature,
txSignatureBlockHash: latestBlockhash,
instructions: vtx,
});
} catch (e) {
console.warn(`postSendTxCallback error ${e}`);