-
Notifications
You must be signed in to change notification settings - Fork 64
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
Unable to execute script/transaction that takes Type as argument with the flow cli v0.31.2 #470
Comments
Thank you for the feedback, will take a look and report back. |
Hello, what is the status on this? Did you find something. Would be awesome if this could get fixed soon. |
@onkel-skrue cc-ing @SupunS from Cadence team he might have a better idea what is the problem here. |
Hi @onkel-skrue,
Seems like documentation (https://docs.onflow.org/cadence/json-cadence-spec/#type) is incorrect there. |
Hi @SupunS. I tried:
but, getting:
|
Oh, I just realized this feature for importing type values (onflow/cadence#1202) is not yet released to the networks. This should be available with the next release of Cadence. |
Thanks for help. Will wait for it :) |
One question. What does |
I need a generic script that can check if a collection contains a specific Type of NFT's. |
StaticType is a structure that captures all details about the type. Looping in @dsainati1 in case I miss anything and/or for any further details |
@onkel-skrue so are we okay to close this issue? It looks to me the issues should be opened on Cadence with a documentation tag. |
Yes, closing now. Thanks for the help :) |
@SupunS I tried this again with latest cli, but no luck. I see that you have merged the changes. What am I doing wrong?
|
Unfortunately, this hasn't still made it to the emulator/networks yet. The most recent releases have all been mostly bug fixes, etc. and no major features were shipped. More details about the next big release can be found here: https://forum.onflow.org/t/breaking-changes-coming-with-secure-cadence-release/3052, which will also include this feature. |
Problem
Unable to execute script/transaction that takes
Type
as argument with the flow cli v0.31.2 using emulator.Steps to Reproduce
test.cdc
fileYou should get following error:
The text was updated successfully, but these errors were encountered: