hedera-docs
hedera-docs copied to clipboard
submit-a-message - setMaxCustomFees is not a function
Description
The function setMaxCustomFees does not exist in TopicMessageTransaction.
It seems to have been confused with setCustomFeeLimits.
setCustomFeeLimits(customFeeLimits: CustomFeeLimit[]): this;
/**
* Adds a maximum custom fee that the user is willing to pay for message submission.
* @param {CustomFeeLimit} customFeeLimit
* @returns {this}
*/
Steps to reproduce
Run the code:
// Create the transaction
const transaction = await new TopicMessageSubmitTransaction()
.setTopicId("topicId")
.setMessage("Hello, HCS!")
.setMaxCustomFees(3); // Set max custom fees if applicable
// Execute transaction
const txResponse = await transaction.execute(client);
Additional context
No response
Hedera network
testnet
Version
v2.64.5
Operating system
None
@franfernandez20 thanks so much for submitting this bug. we'll confirm with the SDK team to ensure we make the updates with the correct function!