Add a general purpose contract CLI #11
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "features/cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This allows to call any method on any contract using the CLI.
for example:
$ truffle exec scripts/cli.js Operator proposalsCount
Looks good!
What about the code style? We don't have a linter, have we? Do we use
;
at the end of line?I would suggest we have a space between
if
and the condition:if (!contract[method])
.Anyway, I'm approving!
yep, should have a linter here I guess. my JS style is not very good I guess - need to teach my editor some tricks.