-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Contract methods unexpectedly returning outputs in an array #869
Comments
This is intentional and part of v5. The If a method returns a single item, the I’ll be adding a section to the docs soon on how to use error recovery. Make sense? You can just use the non- |
(prior to this, the logic frameworks required to re-normalize a call involved fragment inspection) |
Okay, I got this. |
Hi @ricmoo, I've been getting an unusual output from contract methods.
I have a simple smart contract (storage declarations are omitted)
And expected doing the following:
produces:
But I expected it to give following instead of an array value:
I've attached a git archive containing the reproducible script for you to quickly test it.
git-archive-testp.zip. Please let me know if it's working for you.
Also, would like to highlight that, the simple storage contract's
getValue
method (also in #862) returns a straight string value as expected (due to which the test project tests pass successfully). At this point I'm not able to differentiate exactly what makes it give expected/unexpected outcome.Can you please try to reproduce this? I believe this might be related to the recent contract refactor.
The text was updated successfully, but these errors were encountered: