Skip to content

Commit ac668b6

Browse files
committed
Partial sign transactions *after* modifying them
1 parent 5a538a4 commit ac668b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/secure-clients/src/SolanaClient/BackpackSolanaWallet.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,18 @@ export class BackpackSolanaWallet {
169169
const commitment = request.commitment;
170170

171171
if (!isVersionedTransaction(tx)) {
172-
if (signers) {
173-
signers.forEach((s: Signer) => {
174-
tx.partialSign(s);
175-
});
176-
}
177172
if (!tx.feePayer) {
178173
tx.feePayer = publicKey;
179174
}
180175
if (!tx.recentBlockhash) {
181176
const { blockhash } = await connection.getLatestBlockhash(commitment);
182177
tx.recentBlockhash = blockhash;
183178
}
179+
if (signers) {
180+
signers.forEach((s: Signer) => {
181+
tx.partialSign(s);
182+
});
183+
}
184184
} else {
185185
if (signers) {
186186
tx.sign(signers);

0 commit comments

Comments
 (0)