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

pub fn transfer(from: &Address, to: &Address, val: U128) -> bool

Transfer method of ont assets, Transfer ont assets from the from address to the to address

Example

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