Remove RpcClient::resign_transaction()

This commit is contained in:
Michael Vines
2020-06-01 21:33:45 -07:00
parent 4cb7dc7128
commit df216b0e98
2 changed files with 5 additions and 35 deletions

View File

@ -205,7 +205,11 @@ fn send_message<S: Signers>(
no_wait: bool,
) -> Result<Signature, ClientError> {
let mut transaction = Transaction::new_unsigned(message);
client.resign_transaction(&mut transaction, signers)?;
let (blockhash, _fee_calculator) =
client.get_new_blockhash(&transaction.message().recent_blockhash)?;
transaction.try_sign(signers, blockhash)?;
if no_wait {
client.send_transaction(&transaction)
} else {