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 parsing arguments when trying to execute a script or transaction #731

Open
bartolomej opened this issue Aug 19, 2023 · 2 comments
Open
Assignees
Labels
Bug Something isn't working

Comments

@bartolomej
Copy link

Describe the bug

When trying to execute any script or transaction with arguments, nothing happens. Looking at the logs I see "Error parsing arguments" errors.

To Reproduce

Expected behavior
The flow playground UI should successfully parse the script/transaction arguments and show the appropriate inputs so that the user can specify those arguments before execution. No "Error parsing arguments" should be shown.

Screenshots
Screenshot 2023-08-19 at 12 51 11

Desktop (please complete the following information):

  • OS: MacOS 13.1
  • Browser: Chrome 115.0.5790.170
@bthaile bthaile self-assigned this Aug 23, 2023
@bthaile bthaile added the Bug Something isn't working label Aug 23, 2023
@bthaile
Copy link
Contributor

bthaile commented Aug 23, 2023

A few changes I think need to be made to this project.

  1. Do you see a syntax error in FLOATEvents cadence code?

  2. accounts have changed to use 0x01...0x05

  3. I think if you make those changes everything would work. Then redeploy the contracts.
    image

@bartolomej
Copy link
Author

@bthaile Ah I see! I haven't noticed that this contract wasn't yet deployed and that it contains errors.

I guess I would expect that if the referenced/imported contract isn't deployed, it would return some kind of Cadence error saying "couldn't find this contract in this account" or something like that, instead of displaying that confusing "error parsing arguments" error.

Also, this issue isn't really blocking me, I just saw this link in Float's repo and wanted to play around with it a bit. But yeah, it looks like that playground project is a bit out of date / unmaintained, so not a big deal.

I just wonder if we could somehow better handle cases where an existing playground won't work with the current version of the playground to cause less confusion. Maybe there is an easy way to detect that and just say "This project may be incompatible with this playground version"?

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

2 participants