makeTransferFromTx method

Future<Transaction> makeTransferFromTx (Address spender, Address from, Address to, BigInt amount, int gasPrice, int gasLimit, Address payer)

Implementation

Future<Transaction> makeTransferFromTx(
    Address spender,
    Address from,
    Address to,
    BigInt amount,
    int gasPrice,
    int gasLimit,
    Address payer) async {
  var fn = 'transferFrom';
  var b = TxBuilder();
  return b.makeInvokeTx(fn, [spender, from, to, amount], contract,
      gasPrice: gasPrice, gasLimit: gasLimit, payer: payer);
}