Skip to content

fix: Update memory-map of an AccountInfo struct to a VmAccountInfo#24

Merged
jason-nitro merged 4 commits intofeat/zkfrom
jdavis_fix_vmaccount_code
Aug 7, 2025
Merged

fix: Update memory-map of an AccountInfo struct to a VmAccountInfo#24
jason-nitro merged 4 commits intofeat/zkfrom
jdavis_fix_vmaccount_code

Conversation

@jason-nitro
Copy link

Some new Agave code does a fairly evil creation of an AccountInfo struct that uses a flattened piece of memory for all the parts to now do the same (but also less evilly) for VmAccountInfo.

jason-nitro and others added 2 commits July 10, 2025 08:42
* Compilation fixes after Agave update-and-merge

* Update core/Cargo.toml

Co-authored-by: Petar Vujović <petarvujovic98@gmail.com>

---------

Co-authored-by: Petar Vujović <petarvujovic98@gmail.com>
@jason-nitro jason-nitro self-assigned this Jul 10, 2025
Copy link

@petarvujovic98 petarvujovic98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a less evil than it already is - which makes it better

* Compilation fixes after Agave update-and-merge

* Update core/Cargo.toml

Co-authored-by: Petar Vujović <petarvujovic98@gmail.com>

---------

Co-authored-by: Petar Vujović <petarvujovic98@gmail.com>
@jason-nitro
Copy link
Author

This feels a less evil than it already is - which makes it better

Definitely removed some evil, which is how you can tell that having a VmAddress type (well, okay, it's just a u64) is the proper solution, not shoehorning things into Rust pointers when they're not exactly Rust pointers.

@jason-nitro jason-nitro merged commit 27b2f3f into feat/zk Aug 7, 2025
1 check passed
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.

2 participants