1313from hiero_sdk_python .crypto .key import Key
1414from hiero_sdk_python .Duration import Duration
1515from hiero_sdk_python .executable import _Method
16- from hiero_sdk_python .hapi .services import consensus_update_topic_pb2 , duration_pb2 , timestamp_pb2 , transaction_pb2
16+ from hiero_sdk_python .hapi .services import consensus_update_topic_pb2 , duration_pb2 , transaction_pb2
1717from hiero_sdk_python .hapi .services .custom_fees_pb2 import FeeExemptKeyList , FixedCustomFeeList
1818from hiero_sdk_python .hapi .services .schedulable_transaction_body_pb2 import (
1919 SchedulableTransactionBody ,
@@ -33,7 +33,7 @@ def __init__(
3333 memo : str | None = None ,
3434 admin_key : Key | None = None ,
3535 submit_key : Key | None = None ,
36- auto_renew_period : Duration | None = Duration ( 7890000 ) ,
36+ auto_renew_period : Duration | None = None ,
3737 auto_renew_account : AccountId | None = None ,
3838 expiration_time : Timestamp | None = None ,
3939 custom_fees : list [CustomFixedFee ] | None = None ,
@@ -157,7 +157,7 @@ def set_auto_renew_account(self, account_id: AccountId) -> TopicUpdateTransactio
157157 self .auto_renew_account = account_id
158158 return self
159159
160- def set_expiration_time (self , expiration_time : timestamp_pb2 . Timestamp ) -> TopicUpdateTransaction :
160+ def set_expiration_time (self , expiration_time : Timestamp ) -> TopicUpdateTransaction :
161161 """
162162 Sets the expiration time for the topic.
163163
@@ -243,12 +243,7 @@ def _build_proto_body(self) -> consensus_update_topic_pb2.ConsensusUpdateTopicTr
243243
244244 Returns:
245245 ConsensusUpdateTopicTransactionBody: The protobuf body for this transaction.
246-
247- Raises:
248- ValueError: If required fields are missing.
249246 """
250- if self .topic_id is None :
251- raise ValueError ("Missing required fields: topic_id" )
252247
253248 custom_fees = (
254249 FixedCustomFeeList (fees = [custom_fee ._to_topic_fee_proto () for custom_fee in self .custom_fees ])
@@ -263,7 +258,7 @@ def _build_proto_body(self) -> consensus_update_topic_pb2.ConsensusUpdateTopicTr
263258 )
264259
265260 return consensus_update_topic_pb2 .ConsensusUpdateTopicTransactionBody (
266- topicID = self .topic_id ._to_proto (),
261+ topicID = self .topic_id ._to_proto () if self . topic_id else None ,
267262 adminKey = key_to_proto (self .admin_key ) if self .admin_key else None ,
268263 submitKey = key_to_proto (self .submit_key ) if self .submit_key else None ,
269264 autoRenewPeriod = (
0 commit comments