1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use crate::{types::OperationBody, Operation, StellarSdkError};

impl Operation {
    pub fn new_inflation(
    ) -> Result<Operation, StellarSdkError> {
        Ok(Operation {
            source_account: None,
            body: OperationBody::Inflation,
        })
    }
}