-
Notifications
You must be signed in to change notification settings - Fork 39
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
Code hash resolve fix + cleanup #44
Conversation
- Although we were adding any contract code created to the local code hash resolve table for the current txn, we were not adding this into the "global" lookup table. - Also cleaned up the logic for resolving code hashes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall!
Co-authored-by: Robin Salen <[email protected]>
Nice job |
@BGluth Let's maybe only do squash-merges from now, especially as we have all these repos together, to get a straightforward history? (I think this can be enforced in the repo settings by default) |
@Nashtare Yeah I'm fine with that. |
I had updated the auto-merge 🤣 |
Although we were adding code that was created during a txn to the local code hash resolve table, it was not getting added to the "global" lookup table. Previously I was using this funny closure to resolve code hashes, but this is pretty
unusable as soon as you need to add new entries to the current table. I ended up replacing this with a struct called
CodeHashResolving
, which I think is a lot easier to read.