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

Return time as Date instance #2010

Merged
merged 2 commits into from
Aug 23, 2024
Merged

Return time as Date instance #2010

merged 2 commits into from
Aug 23, 2024

Conversation

davidyuk
Copy link
Member

found issues aeternity/ae_mdw#1891 aeternity/ae_mdw#1901 aeternity/aeternity#4386

This PR is supported by the Æternity Foundation

BREAKING CHANGE: Node returns time in KeyBlock and MicroBlockHeader as Date
Apply a change
```diff
-const time = new Date(
-  (await node.getTopHeader()).time,
-);
+const time = (await node.getTopHeader()).time;
```
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.52%. Comparing base (3fc8b0a) to head (e0e33ea).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2010      +/-   ##
===========================================
+ Coverage    84.37%   84.52%   +0.15%     
===========================================
  Files          106      106              
  Lines         3495     3497       +2     
  Branches       729      730       +1     
===========================================
+ Hits          2949     2956       +7     
+ Misses         452      447       -5     
  Partials        94       94              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidyuk davidyuk merged commit a992abe into develop Aug 23, 2024
5 checks passed
@davidyuk davidyuk deleted the autorest-date branch August 23, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant