Skip to content

processor: allocate with seed#43

Merged
buffalojoec merged 2 commits intomainfrom
processor2
Mar 7, 2025
Merged

processor: allocate with seed#43
buffalojoec merged 2 commits intomainfrom
processor2

Conversation

@buffalojoec
Copy link
Contributor

This PR implements the AllocateWithSeed instruction processor in the BPF version of the System builtin program.

See #38 for a draft overview of the implemented base processor (no nonce instructions).

Copy link
Member

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

LGTM, just one comment but not sure if it's addressable given the migration objectives

errors are thrown, we inject the check here.
*/
if let Some((base_key, base_info)) = self.base {
base_key == base_info.key && base_info.is_signer
Copy link
Member

Choose a reason for hiding this comment

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

It feels strange to have this check here and also not throw. Would it not make more sense to have a standalone check that raises an error if they don't match? Or is the objective not to make any business logic change in the migration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, as the comment above it states, it's not pretty but it's so that the program behaves exactly as the original did. Trust me, I hate it too.

Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

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

Looks good! Just a tiny nit.

@buffalojoec buffalojoec merged commit 283dc7e into main Mar 7, 2025
5 checks 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.

3 participants