use sendRawTx in rpc.ts
This commit is contained in:
parent
ae7acbbc6b
commit
20ff7c99c6
|
@ -39,12 +39,16 @@ export async function sendTransaction(
|
||||||
vtx.sign([((provider as AnchorProvider).wallet as any).payer as Signer]);
|
vtx.sign([((provider as AnchorProvider).wallet as any).payer as Signer]);
|
||||||
}
|
}
|
||||||
|
|
||||||
const signature = await connection.sendTransaction(
|
const signature = await connection.sendRawTransaction(vtx.serialize(), {
|
||||||
vtx as any as VersionedTransaction,
|
skipPreflight: true,
|
||||||
{
|
});
|
||||||
skipPreflight: true,
|
|
||||||
},
|
// const signature = await connection.sendTransactionss(
|
||||||
);
|
// vtx as any as VersionedTransaction,
|
||||||
|
// {
|
||||||
|
// skipPreflight: true,
|
||||||
|
// },
|
||||||
|
// );
|
||||||
|
|
||||||
if (opts.postSendTxCallback) {
|
if (opts.postSendTxCallback) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue