TronRequestUpdateAccount.fromContract constructor

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

Implementation

factory TronRequestUpdateAccount.fromContract(AccountUpdateContract contract,
    {int? permissionId, bool visible = true}) {
  return TronRequestUpdateAccount(
      ownerAddress: contract.ownerAddress,
      accountName: StringUtils.decode(contract.accountName),
      pemissionId: permissionId,
      visible: visible);
}