Skip to content
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

Show Gas consumption by default for dry-runs #1021

Closed
cmichi opened this issue Mar 14, 2023 · 1 comment
Closed

Show Gas consumption by default for dry-runs #1021

cmichi opened this issue Mar 14, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@cmichi
Copy link
Collaborator

cmichi commented Mar 14, 2023

The console output should contain the Gas estimate for dry-runs.

Currently:

➜  flipper git:(master) ✗ cargo contract instantiate --suri //Alice --args true                             
      Result Success!
    Contract 5Hgzda4MwEL99i4mz2Szz43txpKafaEsBZu9N9me5LHkfArW
    Reverted false
        Data Bytes([0, 0])
Your instantiate call has not been executed.
To submit the transaction and execute the call on chain, add -x/--execute flag to the command.

Should include:

   Gas limit Weight(ref_time: 323301935, proof_size: 0)
@cmichi cmichi added enhancement New feature or request good first issue Good for newcomers labels Mar 14, 2023
@ascjones
Copy link
Collaborator

Closed by #1121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants