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

command 'get_policy' returns formatted policy file that needs modifications in order to be uploaded using 'propose policy' #32

Open
OllieMurray opened this issue Apr 14, 2022 · 1 comment

Comments

@OllieMurray
Copy link

Hello,

Can someone from the team please modify the 'get_policy' command so that it returns an output formatted such that it can be saved and then loaded using the 'propose policy' command. The current output does not include " " around field names or the field values. rather it has no " " around the field names and uses ' ' around the field values. An even better solution would be to spit out a properly formatted .json file to the project directory.

Thanks!

@OllieMurray OllieMurray changed the title command 'get_policy' returns poorly formatted policy file command 'get_policy' returns formatted policy file that needs modifications in order to be uploaded using 'propose policy' Apr 14, 2022
@OllieMurray
Copy link
Author

Hello,
Just wanted to follow up on this. upon further investigation the issue arises due to how view calls are formatted by the underlying contract. this is probably a result of how view calls are formatted in general across all contracts. I suggest decorating the return response from the underlying contract so that it meets the required formatting needs.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant