hashgraph / hedera-sdk-rust

The Hedera™ Rust SDK
Apache License 2.0
42 stars 14 forks source link

Handle invalid expiration time in `TokenInfo` #849

Closed RickyLB closed 1 month ago

RickyLB commented 2 months ago

Description:

This PR temporarily handles an integer overflow for tokens that do not have an expiry time. Fetching TokenInfo expiry.seconds from the mirror node results in a Some(Timestamp { seconds: -9223372036854775808, nanos: 0 }) if the token's expiration time is not set.

Related issue(s):

Fixes #

Notes for reviewer:

Checklist