[][src]Function ontio_std::contract::ont::transfer_from

pub fn transfer_from(
    sender: &Address,
    from: &Address,
    to: &Address,
    amount: U128
) -> bool

Spender transfers a certain amount of ont from from-address to to-address

Example

  let input= input();
  let mut source = Source::new(&input);
  let (spender, from, to, amount) = source.read().unwrap();
  ont::transfer_from(spender, from, to, amount);