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

Revision number is being stored as an integer #31

Closed
n8maninger opened this issue May 16, 2024 · 0 comments · Fixed by #33
Closed

Revision number is being stored as an integer #31

n8maninger opened this issue May 16, 2024 · 0 comments · Fixed by #33
Assignees
Milestone

Comments

@n8maninger
Copy link
Member

n8maninger commented May 16, 2024

ERROR   explorer        failed to sync store    {"error": "failed to process updates: failed to update chain state: failed to apply chain update \"8502::7afcc480\": v: failed to add file contracts: addFileContractElements: failed to execute file_contract_elements statement: sql: converting argument $10 type: uint64 values with high bit set are not supported"}

SQLite doesn't support uint64 natively. You need to call encode and decode when working with contract revision numbers since we use math.MaxUint64 to lock contracts. Should have been caught in #28, my bad

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 a pull request may close this issue.

2 participants