Skip to content

Commit 5c8cbf2

Browse files
committed
Avoid panic when signing is cancelled
1 parent cc1da1d commit 5c8cbf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bin/sys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3407,7 +3407,7 @@ async fn process_account_split<T: Signers>(
34073407
into_keypair.pubkey(),
34083408
);
34093409

3410-
transaction.partial_sign(&signers, recent_blockhash);
3410+
transaction.try_partial_sign(&signers, recent_blockhash)?;
34113411
transaction.try_sign(&[&into_keypair], recent_blockhash)?;
34123412

34133413
let signature = transaction.signatures[0];

0 commit comments

Comments
 (0)