-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(cast): batch send/sign/mktx in cast #13000
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
base: master
Are you sure you want to change the base?
Conversation
crates/cast/src/cmd/batch_send.rs
Outdated
| /// Parsed transaction specification | ||
| #[derive(Debug, Clone)] | ||
| pub struct TxSpec { | ||
| pub to: String, | ||
| pub value: Option<String>, | ||
| pub sig: Option<String>, | ||
| pub args: Vec<String>, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these parsed differently?
if not we can unify them and avoid duplicating parsing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unified
| /// | ||
| /// Examples: | ||
| /// --tx "0x123:0.1ether" (ETH transfer) | ||
| /// --tx "0x456::transfer(address,uint256):0x789,1000" (contract call) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add some clap test for this, because I believe the signature must be wrapped in a string due to the ,?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated it to ;
Motivation
closes #12987
Solution
PR Checklist