This allows to call any method on any contract using the CLI.
for example:
$ truffle exec scripts/cli.js Operator proposalsCount
fsmanuel
(Migrated from github.com)
approved these changes 2018-04-07 17:36:11 +00:00
fsmanuel
(Migrated from github.com)
left a comment
Copy Link
Copy Source
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!
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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
ifand 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.