We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf8d765 commit cf9c847Copy full SHA for cf9c847
1 file changed
ts/src/rpc.ts
@@ -246,6 +246,9 @@ export class RpcFactory {
246
rpc[m.name] = async (...args: any[]): Promise<TransactionSignature> => {
247
const [_, ctx] = splitArgsAndCtx(m, [...args]);
248
const tx = new Transaction();
249
+ if (ctx.instructions !== undefined) {
250
+ tx.add(...ctx.instructions);
251
+ }
252
tx.add(await ix[m.name](...args));
253
try {
254
const txSig = await provider.send(tx, ctx.signers, ctx.options);
0 commit comments