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

Add test to check how errors are rendered #296

Closed
wants to merge 3 commits into from

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Aug 30, 2023

What

Add test to check how errors are rendered.

Why

I wrote the test to confirm the behavior.

In output of stellar-xdr I saw the following:

{
  "error": {
    "type_": "contract",
    "code": "existing_value"
  }
}

Writing this test confirmed the correct rendering is:

{
  "error": {
    "contract": 4
   }
}

Committing this test because, why not.

@leighmcculloch leighmcculloch requested a review from graydon August 30, 2023 21:35
@leighmcculloch leighmcculloch marked this pull request as ready for review August 30, 2023 21:35
@leighmcculloch leighmcculloch deleted the sphaerosome-noninfraction branch August 31, 2023 00:13
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

Successfully merging this pull request may close these issues.

1 participant