Skip to content

Commit ce8e39f

Browse files
committed
fix: custom fee handling
Signed-off-by: exploreriii <133720349+exploreriii@users.noreply.github.com>
1 parent 5188451 commit ce8e39f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hiero_sdk_python/tokens/token_create_transaction.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,9 @@ def build_transaction_body(self) -> transaction_body_pb2.TransactionBody:
453453
token_create_body.pause_key.CopyFrom(pause_key_proto)
454454
if kyc_key_proto is not None:
455455
token_create_body.kycKey.CopyFrom(kyc_key_proto)
456-
custom_fees=[fee._to_proto() for fee in self._token_params.custom_fees],
456+
if self._token_params.custom_fees:
457+
for fee in self._token_params.custom_fees:
458+
token_create_body.custom_fees.append(fee._to_proto())
457459

458460
# Build the base transaction body and attach the token creation details
459461
transaction_body: transaction_body_pb2.TransactionBody = self.build_base_transaction_body()

0 commit comments

Comments
 (0)