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

error messages for incorrectly sorted maps are misleading / confusing #1510

Open
leighmcculloch opened this issue Jan 16, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@leighmcculloch
Copy link
Member

What version are you using?

22.0.0

What did you do?

Simulate or submit the following tx, that has map fields out of order:

AAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAYAAAAAAAAAAGdTgdKCaqpjHKj82w07K3eFBGfoi5WwVXPHFK0XTX7GgAAAAVoZWxsbwAAAAAAAAEAAAARAAAAAQAAAAIAAAAPAAAAAWIAAAAAAAAOAAAAAmJiAAAAAAAPAAAAAWEAAAAAAAAOAAAAAmFhAAAAAAAAAAAAAAAAAAA=

What did you expect to see?

Helpful diagnostic errors that indicate that an input map was not sorted correctly, the order of the fields, and the expected order of the fields.

What did you see instead?

❌ error: transaction simulation failed: HostError: Error(Object, InvalidInput)

Event log (newest first):
   0: [Diagnostic Event] topics:[error, Error(Object, InvalidInput)], data:"failed to convert ScVal to host value"
@leighmcculloch leighmcculloch added the bug Something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant