-
Notifications
You must be signed in to change notification settings - Fork 139
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
Changed data type of account key index to uin32 #3465
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit cc99e72 Collapsed results for better readability
|
I had a look at the referenced issue and it sort of makes sense in flow-go. However, do we want to enforce limits of Flow in Cadence? It would be nice to keep Cadence agnostic of particular chain-limits. Even without the proposed changes, it should be possible to check/reject invalid indices. |
does this mean you would prefer cadence still having a |
Maybe it's good to discuss this a bit more synchronously, maybe as part of the next implementation sync? https://www.notion.so/flowfoundation/Cadence-Implementation-Sync-Notes-Agenda-cf6890eb8a9f4692a8c08611856a5af5?pvs=4#e78f967d7c814ea8b0178e83d39b2e4b. Can have it earlier, don't need to wait for a week. Can also have a separate sync about it
On one end we have the key management APIs and types (e.g. The question is where we define limits and how we enforce them. For example, if we enforce flow-go's (new?) limit to max |
properly convert Cadence Int to Go uint32 by checking range, do not truncate
@janezpodhostnik As discussed, I fixed the Cadence @SupunS PTAL 🙏 |
Work towards onflow/flow-go#6204
Description
Changed data type of account key index to uin32.
There are still a few casts in the code, that I did not know how to get rid of.
master
branchFiles changed
in the Github PR explorer