-
Notifications
You must be signed in to change notification settings - Fork 70
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 watchGas CLI command #412
base: develop
Are you sure you want to change the base?
Conversation
.addCommand( | ||
new Command("watchGas") | ||
.usage("[target] [methodName params...] [methodName params...]") | ||
.description( | ||
"Measure gas used for a contract method. Run this command after deploying the contract." | ||
) | ||
.argument( | ||
"[target]", | ||
"Target file path and name. (e.g., ./build/counter.wasm)" | ||
) | ||
.argument( | ||
"[...methodCalls]", "Method calls with their parameters (e.g., increase n=5 decrease n=2)" | ||
) | ||
.action(measureGas) |
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.
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.
All transactions here are executed on sandbox env. The idea of this command was to make it easier for new people to start working with near-sdk-js.
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.
Hey @frol, should we close this PR?
Pre-flight checklist
Motivation
Test Plan
Related issues/PRs