-
Notifications
You must be signed in to change notification settings - Fork 103
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
Adding implementation and tests for admin write commands. #252
Adding implementation and tests for admin write commands. #252
Conversation
&flags.NetworkFlag, | ||
&flags.EnvironmentFlag, | ||
&flags.ETHRpcUrlFlag, | ||
&PermissionControllerAddressFlag, | ||
} | ||
sort.Sort(cli.FlagsByName(cmdFlags)) |
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.
did not realize before but you should append signer flags first and then sort - so that all flags are sorted
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.
Gonna pick this up in the flag review.
func acceptFlags() []cli.Flag { | ||
cmdFlags := []cli.Flag{ | ||
&flags.VerboseFlag, | ||
&AccountAddressFlag, | ||
&flags.OutputTypeFlag, |
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 you going to add broadcast flag and corresponding feature later?
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.
Yeah, going to do a sweep over all flags in a separate PR.
return nil, eigenSdkUtils.WrapError("failed to create new eth client", err) | ||
} | ||
elWriter, err := common.GetELWriter( | ||
config.AccountAddress, |
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.
you can just return common.GetELWriter (..) instead of creating vars which you return in next line.
Adding implementation and tests for admin write commands.
What Changed?