Limit message encoding to base-64 (#19468)

This commit is contained in:
Jack May
2021-08-29 19:53:37 -07:00
committed by GitHub
parent 84db04ce6c
commit f81bfc8462
3 changed files with 4 additions and 12 deletions

View File

@ -3892,12 +3892,7 @@ impl RpcClient {
serialize_and_encode::<Message>(message, UiTransactionEncoding::Base64)?;
let result = self.send::<Response<Option<u64>>>(
RpcRequest::GetFeeForMessage,
json!([
blockhash.to_string(),
serialized_encoded,
UiTransactionEncoding::Base64,
self.commitment(),
]),
json!([blockhash.to_string(), serialized_encoded, self.commitment()]),
)?;
result
.value