Getting this error when trying to set priority fee
solders.SignerError: not enough signers
Python 3.10.2
Solders 0.18.1
Solana 0.30.2
Code example is just following the solana cookbook:
...
transaction = Transaction()
transaction.add(set_compute_unit_limit(1_000_000))
transaction.add(set_compute_unit_price(1_000))
transaction.add(transfer(TransferParams(
from_pubkey=sender.pubkey(),
to_pubkey=receiver.pubkey(),
lamports=int(0.001*LAMPORT_PER_SOL))
))
signature = client.send_transaction(transaction, sender)
Error does not appear when removing the priority fee instructions.
Any help would be great.
Thanks