Transfer
//First import LibraAccount library
import 0x0.LibraAccount;
//Receive two parameters the address of the account that we want to transfer,
// and the amount that we want to move
main(payee: address, amount: u64){
//Use the method of pay from sender to move the coints to the account
LibraAccount.pay_from_sender(move(payee), move(amount));
return;
}
Last updated
Was this helpful?