add new field to postSendTxCallback
This commit is contained in:
parent
204d79ff13
commit
6c03fe56aa
|
@ -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 {
|
||||
|
|
|
@ -142,6 +142,7 @@ export async function sendTransaction(
|
|||
opts.postSendTxCallback({
|
||||
txid: signature,
|
||||
txSignatureBlockHash: latestBlockhash,
|
||||
instructions: vtx,
|
||||
});
|
||||
} catch (e) {
|
||||
console.warn(`postSendTxCallback error ${e}`);
|
||||
|
|
Loading…
Reference in New Issue