Skip to content

Add add_custom_fee() and add_fee_exempt_key() to TopicUpdateTransaction #2472

Description

@exploreriii

https://docs.hedera.com/native/consensus/update-topic

TopicUpdateTransaction provides set_custom_fees()/clear_custom_fees() and set_fee_exempt_keys()/clear_fee_exempt_keys(), but is missing the add versions:

  • add_custom_fee()
  • add_fee_exempt_key()

Such methods exist in the JS SDK
https://github.com/hiero-ledger/hiero-sdk-js/blob/main/src/topic/TopicUpdateTransaction.js

set_custom_fees(fees) — replace the pending list wholesale
add_custom_fee(fee) — append one to the pending list, creating it if unset

The author should study the reference implementations to understand style and conventions

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-reviewskill: intermediaterequires some knowledge of the codebase with some defined steps to implement or examples

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions