Skip to content

Commit 28b548a

Browse files
authored
Fix migration service not signing (#1060)
1 parent b17d299 commit 28b548a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/migration-service/src/ledger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ export async function getMigrateTransactions(
227227
const draft = transactions[i];
228228
tx.serialize();
229229
if (
230-
draft.signers?.some((sig) =>
231-
sig.publicKey.equals(provider.wallet.publicKey)
232-
)
230+
draft.instructions.map((ix) => ix.keys).flat().some((key) =>
231+
key.pubkey.equals(provider.wallet.publicKey) && key.isSigner
232+
) || draft.feePayer?.equals(provider.wallet.publicKey)
233233
) {
234234
return provider.wallet.signTransaction(tx);
235235
}

0 commit comments

Comments
 (0)