fn sign_transfer(
        &self,
        from: &ZksyncAccount,
        to: &ZksyncAccount,
        amount: impl Into<BigUint>,
        fee: impl Into<BigUint>,
    ) -> (FranklinTx, Option<PackedEthSignature>) {
        let (tx, eth_signature) = from.sign_transfer(
            0, // ETH
            "ETH",
            amount.into(),
            fee.into(),
            &to.address,
            None,
            true,
        );

        (FranklinTx::Transfer(Box::new(tx)), Some(eth_signature))
    }
/// Creates a signed transfer transaction.
/// Sender and receiver are chosen from the generated
/// accounts, determined by its indices.
Creates a signed transfer transaction.
Sender and receiver are chosen from the generated
accounts, determined by its indices.
Creates a signed transfer transaction . Sender and receiver are chosen from the generated accounts determined by its indices .
fn sign_transfer(
        &self,
        from: &ZksyncAccount,
        to: &ZksyncAccount,
        amount: impl Into<BigUint>,
        fee: impl Into<BigUint>,
    ) -> (FranklinTx, Option<PackedEthSignature>) {
        let (tx, eth_signature) = from.sign_transfer(
            0, // ETH
            "ETH",
            amount.into(),
            fee.into(),
            &to.address,
            None,
            true,
        );
        (FranklinTx::Transfer(Box::new(tx)), Some(eth_signature))
    }
fn sign_transfer ( & self , from : & ZksyncAccount , to : & ZksyncAccount , amount : impl Into < BigUint > , fee : impl Into < BigUint > , ) -> ( FranklinTx , Option < PackedEthSignature > ) { let ( tx , eth_signature ) = from . sign_transfer ( 0 , // ETH " " , amount . into ( ) , fee . into ( ) , & to . address , None , true , ) ; ( FranklinTx :: Transfer ( Box :: new ( tx ) ) , Some ( eth_signature ) ) }
Creates a signed transfer transaction.
Creates a signed transfer transaction .
&self
from
&ZksyncAccount
to
&ZksyncAccount
amount
impl Into<BigUint>
fee
impl Into<BigUint>