Skip to content
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

Add utils to generate instruction_data based on name #57

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

ksolana
Copy link
Collaborator

@ksolana ksolana commented Jun 3, 2024

Towards #55

We'll keep improving it, but for now this at least prints the bytes that we need to populate instruction_data

Test: cargo run -- -f counter__owner
As bytes: [99, 111, 117, 110, 116, 101, 114, 95, 95, 111, 119, 110, 101, 114]
len: [14, 0, 0, 0, 0, 0, 0, 0]
"instruction_data": [14, 0, 0, 0, 0, 0, 0, 0, 99, 111, 117, 110, 116, 101, 114, 95, 95, 111, 119, 110, 101, 114]

@ksolana ksolana marked this pull request as ready for review June 3, 2024 17:33
@ksolana ksolana requested review from dmakarov and jcivlin June 3, 2024 17:33
@ksolana
Copy link
Collaborator Author

ksolana commented Jun 5, 2024

Using argparse to serialize any function names.

@ksolana ksolana merged commit 2746a4f into anza-xyz:solana Jun 5, 2024
10 checks passed
@ksolana ksolana deleted the util branch June 5, 2024 04:54
ksolana added a commit to ksolana/sui that referenced this pull request Jun 14, 2024
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