UiTransactionEncoding is now copy
This commit is contained in:
parent
c31e1f5bf0
commit
494968be66
|
@ -1658,7 +1658,7 @@ impl Blockstore {
|
||||||
iterator
|
iterator
|
||||||
.map(|transaction| {
|
.map(|transaction| {
|
||||||
let signature = transaction.signatures[0];
|
let signature = transaction.signatures[0];
|
||||||
let encoded_transaction = EncodedTransaction::encode(transaction, encoding.clone());
|
let encoded_transaction = EncodedTransaction::encode(transaction, encoding);
|
||||||
TransactionWithStatusMeta {
|
TransactionWithStatusMeta {
|
||||||
transaction: encoded_transaction,
|
transaction: encoded_transaction,
|
||||||
meta: self
|
meta: self
|
||||||
|
|
|
@ -204,7 +204,7 @@ pub struct TransactionWithStatusMeta {
|
||||||
pub meta: Option<UiTransactionStatusMeta>,
|
pub meta: Option<UiTransactionStatusMeta>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
|
#[derive(Serialize, Deserialize, Clone, Copy, Debug, PartialEq)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub enum UiTransactionEncoding {
|
pub enum UiTransactionEncoding {
|
||||||
Binary,
|
Binary,
|
||||||
|
|
Loading…
Reference in New Issue