Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle invalid expiration time in TokenInfo #849

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

RickyLB
Copy link
Contributor

@RickyLB RickyLB commented Sep 20, 2024

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

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@RickyLB RickyLB requested review from a team as code owners September 20, 2024 21:06
@RickyLB RickyLB force-pushed the default_expiration_time branch 4 times, most recently from df0df0a to a6047bf Compare September 24, 2024 21:01
@RickyLB RickyLB changed the title Add default expiration time to token create Handle invalid expiration time in TokenInfo Sep 24, 2024
Sheng-Long
Sheng-Long previously approved these changes Sep 27, 2024
@RickyLB RickyLB force-pushed the default_expiration_time branch from 4da21db to 8eb844e Compare September 27, 2024 17:36
@RickyLB RickyLB requested a review from Sheng-Long September 27, 2024 18:00
@RickyLB RickyLB changed the title Handle invalid expiration time in TokenInfo Handle invalid expiration time in TokenInfo Sep 27, 2024
@RickyLB RickyLB merged commit 4b27ad3 into hashgraph:main Sep 27, 2024
4 checks passed
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.

2 participants