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 encode command #16

Open
jrchatruc opened this issue Nov 21, 2023 · 0 comments · May be fixed by #17
Open

Add encode command #16

jrchatruc opened this issue Nov 21, 2023 · 0 comments · May be fixed by #17
Assignees

Comments

@jrchatruc
Copy link

jrchatruc commented Nov 21, 2023

🌟 Feature Request

📝 Description

This command should take a function's signature along with arguments to call it with and return the encoded representation of that call as a hexstring. This is useful when trying to perform a call or send, which in the --data field require this encoding.

You can check out the encode command on this CLI for examples.

🤔 Rationale

🖼️ Mockups/Examples

zksync-cli contract encode --function "function someFunction(address)" --arguments 0x979a29A9347A773b2fB44D93D148D152ad9c23F0 --types address

📋 Additional Context

@Juan-M-V Juan-M-V self-assigned this Nov 21, 2023
@Juan-M-V Juan-M-V linked a pull request Nov 28, 2023 that will close this issue
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 a pull request may close this issue.

2 participants