handle when optional param doesnt exist
This commit is contained in:
parent
2483e7cc18
commit
3c06b718c6
|
@ -12,7 +12,7 @@ export async function sendTransaction(
|
|||
await connection.getLatestBlockhash(opts.preflightCommitment)
|
||||
).blockhash;
|
||||
transaction.feePayer = payer.publicKey;
|
||||
if (opts.additionalSigners.length > 0) {
|
||||
if (opts.additionalSigners?.length > 0) {
|
||||
transaction.partialSign(...opts.additionalSigners);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue