TronRequestUpdateAsset.fromContract constructor

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

Implementation

factory TronRequestUpdateAsset.fromContract(
  UpdateAssetContract contract, {
  int? permissionId,
  bool visible = true,
}) {
  return TronRequestUpdateAsset(
    ownerAddress: contract.ownerAddress,
    description: StringUtils.tryDecode(contract.description),
    url: StringUtils.tryDecode(contract.url),
    newLimit: contract.newLimit,
    newPublicLimit: contract.newPublicLimit,
    permissionId: permissionId,
    visible: visible,
  );
}