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

--dry-run flag for maci-cli #1053

Open
1 task done
0xmad opened this issue Jan 18, 2024 · 2 comments
Open
1 task done

--dry-run flag for maci-cli #1053

0xmad opened this issue Jan 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@0xmad
Copy link
Collaborator

0xmad commented Jan 18, 2024

Prerequisites

Please answer the following question for yourself before submitting a feature request.

  • I checked to make sure that this request has not already been filed

Motivation

As a user I'd like to have --dry-run flag for cli to check if all operations are successful without paying for transaction.

Details

We can use static calls for calling contract methods and check if the call is successful. It will allow us to get rid of hardcoded gas limits and user can configure gas limit without fearing of losing money.

Make sure that you have reviewed MACI's Contributor Guidelines

@0xmad 0xmad added the enhancement New feature or request label Jan 18, 2024
@0xmad 0xmad added this to MACI Jan 18, 2024
@0xmad 0xmad moved this to Todo in MACI Jan 18, 2024
@ctrlc03
Copy link
Collaborator

ctrlc03 commented Aug 7, 2024

Is this something that we want to keep on the todo list still given we are shifting away from the cli to using contract tasks + other clients (like maci-platform interface)? @0xmad

@0xmad
Copy link
Collaborator Author

0xmad commented Aug 7, 2024

I think it's still relevant. --dry-run can be used with contracts and platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants