pub fn franklin_tx_to_franklin_op(&self, tx: FranklinTx) -> Result<FranklinOp, Error> {
        match tx {
            FranklinTx::Transfer(tx) => self
                .create_transfer_op(*tx)
                .map(TransferOutcome::into_franklin_op),
            FranklinTx::Withdraw(tx) => self.create_withdraw_op(*tx).map(Into::into),
            FranklinTx::ChangePubKey(tx) => self.create_change_pubkey_op(*tx).map(Into::into),
            FranklinTx::Close(_) => failure::bail!("Close op is disabled"),
        }
    }
/// Converts the `FranklinTx` object to a `FranklinOp`, without applying it.
Converts the `FranklinTx` object to a `FranklinOp`, without applying it.
Converts the ` FranklinTx ` object to a ` FranklinOp ` without applying it .
pub fn franklin_tx_to_franklin_op(&self, tx: FranklinTx) -> Result<FranklinOp, Error> {
        match tx {
            FranklinTx::Transfer(tx) => self
                .create_transfer_op(*tx)
                .map(TransferOutcome::into_franklin_op),
            FranklinTx::Withdraw(tx) => self.create_withdraw_op(*tx).map(Into::into),
            FranklinTx::ChangePubKey(tx) => self.create_change_pubkey_op(*tx).map(Into::into),
            FranklinTx::Close(_) => failure::bail!("Close op is disabled"),
        }
    }
pub fn franklin_tx_to_franklin_op ( & self , tx : FranklinTx ) -> Result < FranklinOp , Error > { match tx { FranklinTx :: Transfer ( tx ) => self . create_transfer_op ( * tx ) . map ( TransferOutcome :: into_franklin_op ) , FranklinTx :: Withdraw ( tx ) => self . create_withdraw_op ( * tx ) . map ( Into :: into ) , FranklinTx :: ChangePubKey ( tx ) => self . create_change_pubkey_op ( * tx ) . map ( Into :: into ) , FranklinTx :: Close ( _ ) => failure :: bail ! ( " " ) , } }
Converts the `FranklinTx` object to a `FranklinOp`, without applying it.
Converts the ` FranklinTx ` object to a ` FranklinOp ` without applying it .
&self
tx
FranklinTx