diff --git a/CHANGELOG.md b/CHANGELOG.md index acb14d596..1089ec544 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1. - Improved type hinting in `file_append_transaction.py` to resolve 'mypy --strict` errors. ([#495](https://github.com/hiero-ledger/hiero-sdk-python/issues/495)) - fix: Resolve `__eq__` type conflict in `CustomFee` class (#627) - Fixes a type conflict in `token_id.py` where `from_string` could receive `None`, preventing a runtime error by raising a `ValueError` if the input is missing. #630 +- fix: Pass enum values directly to `TokenCreateTransaction` protobuf to fix type conflict ### Breaking Changes diff --git a/src/hiero_sdk_python/tokens/token_create_transaction.py b/src/hiero_sdk_python/tokens/token_create_transaction.py index 64ef31795..6c166d68e 100644 --- a/src/hiero_sdk_python/tokens/token_create_transaction.py +++ b/src/hiero_sdk_python/tokens/token_create_transaction.py @@ -504,8 +504,8 @@ def _build_proto_body(self) -> token_create_pb2.TokenCreateTransactionBody: symbol=self._token_params.token_symbol, decimals=self._token_params.decimals, initialSupply=self._token_params.initial_supply, - tokenType=token_type_value, - supplyType=supply_type_value, + tokenType=self._token_params.token_type.value, + supplyType=self._token_params.supply_type.value, maxSupply=self._token_params.max_supply, freezeDefault=self._token_params.freeze_default, treasury=self._token_params.treasury_account_id._to_proto(),