Skip to content

Conversation

@MonaaEid
Copy link
Contributor

@MonaaEid MonaaEid commented Nov 30, 2025

This pull request:
Enhances the usability of the CustomFractionalFee class by adding a string representation method and updates the related example to use this new method. This makes it easier to inspect and debug instances of CustomFractionalFee.

  • Added a __str__ method to the CustomFractionalFee class to provide a clear, formatted string representation of its attributes, improving readability and debugging.

  • Updated the custom_fractional_fee.py example to print the string representation of a CustomFractionalFee instance using the new __str__ method.

Related issue(s):

Fixes #916

Checklist

  • Add __str__ method to the CustomFractionalFee class
  • Updated the custom_fractional_fee.py example
  • Update CHANGELOG.md
  • Documented (Code comments, README, etc.)
  • Tested

Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
Signed-off-by: MontyPokemon <59332150+MonaaEid@users.noreply.github.com>
@github-actions
Copy link

Hi, this is WorkflowBot.
Your pull request cannot be merged as it is not passing all our workflow checks.
Please click on each check to review the logs and resolve issues so all checks pass.
To help you:

@MonaaEid MonaaEid changed the title feat: add a __str__ method to CustomFractionalFee class feat: add a __str__ method to CustomFractionalFee class Nov 30, 2025
@MonaaEid MonaaEid changed the title feat: add a __str__ method to CustomFractionalFee class feat: add a __str__ method to CustomFractionalFee class Nov 30, 2025
@MonaaEid MonaaEid marked this pull request as ready for review December 1, 2025 14:51
Copilot AI review requested due to automatic review settings December 1, 2025 14:51
Copilot finished reviewing on behalf of MonaaEid December 1, 2025 14:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a __str__ method to the CustomFractionalFee class to improve debugging and inspection capabilities. The change allows developers to easily view formatted string representations of CustomFractionalFee instances.

  • Added a __str__ method to CustomFractionalFee class for string representation
  • Updated the example script to demonstrate the new method
  • Updated CHANGELOG.md to document the change

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/hiero_sdk_python/tokens/custom_fractional_fee.py Implements the __str__ method to provide a formatted string representation of the class attributes
examples/tokens/custom_fractional_fee.py Simplified the example by using the new __str__ method instead of manually printing each attribute
CHANGELOG.md Added changelog entry documenting the new feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update src/hiero_sdk_python/tokens/custom_fractional_fee.py to add a __str__ method

1 participant