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

[Bug] Return valid Json when executing programs #3361

Open
nathanhopp opened this issue Jul 12, 2024 · 0 comments
Open

[Bug] Return valid Json when executing programs #3361

nathanhopp opened this issue Jul 12, 2024 · 0 comments
Labels
bug Incorrect or unexpected behavior

Comments

@nathanhopp
Copy link

🐛 Bug Report

Improve outputs when executing program commands

Steps to Reproduce

curl <host>/<network>/program/credits.aleo/mapping/bonded/<public_key> 
"{\n  validator: <public_key>,\n  microcredits: 21091223930u64\n}"

The above can't be parsed, and is not valid json.

Expected Behavior

It should return valid json, example:

{
  "validator": "<public_key>",
  "microcredits": "21065418248u64"
}

Even better microcredits not having u64.

Your Environment

independent of env.

@nathanhopp nathanhopp added the bug Incorrect or unexpected behavior label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect or unexpected behavior
Projects
None yet
Development

No branches or pull requests

1 participant