hashgraph / hedera-sdk-js

Hedera™ Hashgraph SDK for JavaScript/TypeScript
https://docs.hedera.com/guides/docs/sdks
Apache License 2.0
277 stars 146 forks source link

Cannot find `setExpirationTime` in `TopicUpdateTransaction` #1087

Closed uac-nhan-nguyen closed 2 years ago

uac-nhan-nguyen commented 2 years ago

Description

Hi,

I'm trying to extend the expiry time of a consensus topic. There seems to be a method called setExpirationTime(<expirationTime>) for that in documentation:

https://docs.hedera.com/guides/docs/sdks/consensus/update-a-topic

However I couldn't find it in this SDK version 2.13.0.

Steps to reproduce

Expect snippet below to work:

const tx = await new TopicUpdateTransaction()
  .setTopicId(...)
  .setExpirationTime(...)
  .execute(client) 

Additional context

No response

Hedera network

testnet

Version

2.13.0

Operating system

No response

janaakhterov commented 2 years ago

I think this field may have been added inbetween features which is why it wasn't included in the SDK. Nonetheless, we'll get this resolved as soon as we can.