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

Add stricter timestamp tests #341

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

Vectorized
Copy link
Collaborator

@Vectorized Vectorized commented Jun 15, 2022

This is to rectify and prevent the case of the upper 96 bits of an address not being zeroed,
causing the startTimestamp and extraData to be corrupted.

If you comment out the mask in _packOwnershipData,
the tests for startTimestamp and extraData will fail for burns.

Note that the incorrect burn startTimestamps are strictly greater than the actual startTimestamps.

@Vectorized Vectorized requested a review from cygaar June 15, 2022 01:05
@Vectorized Vectorized force-pushed the strictTimestampTests branch from ec58a12 to 1a7169e Compare June 15, 2022 01:06
@Vectorized Vectorized merged commit 7a8119c into chiru-labs:main Jun 15, 2022
@Vectorized Vectorized deleted the strictTimestampTests branch June 15, 2022 01:21
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.

1 participant