TronRequestCreateAccount.fromContract constructor

TronRequestCreateAccount.fromContract(
  1. AccountCreateContract contract, {
  2. int? permissionId,
  3. bool visible = true,
})

Implementation

factory TronRequestCreateAccount.fromContract(
  AccountCreateContract contract, {
  int? permissionId,
  bool visible = true,
}) {
  return TronRequestCreateAccount(
      ownerAddress: contract.ownerAddress,
      accountAddress: contract.accountAddress,
      type: contract.type?.name,
      permissionId: permissionId,
      visible: visible);
}