Skip to content

Commit 84c7a3f

Browse files
committed
fix(solana): fix number of signers check
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
1 parent bf506bb commit 84c7a3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solana/src/send.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fn load_signers(
2929
signers_paths: &[String],
3030
transaction: &Transaction,
3131
) -> eyre::Result<Vec<Box<dyn solana_sdk::signer::Signer>>> {
32-
if signers_paths.len() < transaction.signatures.len() {
32+
// We relax one signer as it is the fee payer
33+
if signers_paths.len() < transaction.signatures.len() - 1 {
3334
eyre::bail!("Not enough signers provided");
3435
}
3536

0 commit comments

Comments
 (0)