substrate_stellar_sdk/xdr/impls/operations/account_merge.rs
1use crate::{types::OperationBody, IntoMuxedAccountId, Operation, StellarSdkError};
2
3impl Operation {
4 pub fn new_account_merge<S: IntoMuxedAccountId>(destination_account: S) -> Result<Operation, StellarSdkError> {
5 Ok(Operation {
6 source_account: None,
7 body: OperationBody::AccountMerge(destination_account.into_muxed_account_id()?),
8 })
9 }
10}