Skip to content

Conversation

@glyh
Copy link
Member

@glyh glyh commented Nov 10, 2025

This flag now enforce passing exact number of zeros to pad for app state in zkapp account.

…-delta`, now this flag requires passing in exact number of padding to apply.
@glyh glyh requested a review from a team as a code owner November 10, 2025 07:35
@glyh
Copy link
Member Author

glyh commented Nov 10, 2025

!ci-build-me

in
app_state @ zeros
else app_state
let padded_app_state_size =
Copy link
Member

Choose a reason for hiding this comment

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

Don't shoot , but any unit test to add? :)

Copy link
Member Author

@glyh glyh Nov 10, 2025

Choose a reason for hiding this comment

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

Well, no test added now. This will be used in HF test from compatible/master -> mesa though. I need to think of how to have a proper unit test here

Copy link
Member

Choose a reason for hiding this comment

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

It sort of depends on what we want. I think the zkapp state is a list of length equal to the max state size parameter, right? So in my opinion the should either be unrestricted if we want to be able to have any particular state size, or it should be exactly the mesa size if we only care about generating mesa-compatible ledgers. (Mesa or Berkeley compatible ledgers that is).

Copy link
Member

Choose a reason for hiding this comment

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

I was thinking the runtime genesis ledger could by default generate mesa ledgers, and then have a --legacy flag if you wanted to create a Berkeley ledger. Or some kind of --to (berkeley|mesa) format specifier.

Copy link
Member

Choose a reason for hiding this comment

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

If we wanted to enforce that mesa ledgers were created in the right format then we might be able to use the yojson instance for the hardfork account type?

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.

4 participants