Vishal | Flow (2024-06-22)
can someone help me understand why this transaction failed?
https://previewnet.flowdiver.io/tx/7dab77a9a99483388ed83fe5c51ed81c17d1e1da90913bef5d03480053feb399
That AuthAccount is implicitly available, no?
Flowdiver.io
Flowdiver | 7dab7...eb399 Transaction Information
Explore detailed information about transaction with id 7dab77a9a99483388ed83fe5c51ed81c17d1e1da90913bef5d03480053feb399
14 Replies
I've created a thread for your message. Please continue any relevant discussion in this thread.
You can rename this thread using
/title <new title>
If this is a technical question that others may benefit from, considering also asking it on Stackoverflow: https://stackoverflow.com/questions/ask?tags=onflow-cadenceUnknown User•6mo ago
Message Not Public
Sign In & Join Server To View
previewnet is already using Cadence 1.0, there is no AuthAccount anymore.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Now the Examples in the official Cadence-related GitHub repo are all using Cadence 1.0.
Like https://github.com/onflow/flow-core-contracts/blob/master/transactions/accounts/add_key.cdc
GitHub
flow-core-contracts/transactions/accounts/add_key.cdc at master · o...
Cadence smart contracts that define core functionality of the Flow protocol - onflow/flow-core-contracts
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
https://github.com/onflow/flow-go-sdk/tree/master/examples
there are some examples for go-sdk
GitHub
flow-go-sdk/examples at master · onflow/flow-go-sdk
Tools for building Go applications on Flow :ocean: - onflow/flow-go-sdk
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Oh, for previewnet, it is using cadence 1.0(stable-cadence)
I think you need change the dependency repo
github.com/onflow/sdks
to the stable-cadence
branch (https://github.com/onflow/sdks/tree/supun/stable-cadence/)
cc @Gregor @turbolent This repo is not yet default Cadence 1.0.GitHub
GitHub - onflow/sdks at supun/stable-cadence
Tips and resources for building Flow SDKs and client libraries 🔧 - GitHub - onflow/sdks at supun/stable-cadence
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Yes, actually it (flow-go-sdk) hasn't changed much compared to other networks.
But the problem is that the Cadence script used in its templates does not point to Cadence 1.0 version (which is the repo I mentioned above), so you may need to handle this locally.
yeah, https://github.com/onflow/sdks/compare/main...feature/stable-cadence still needs to get merged, thanks for pointing that out! 🙏
GitHub
Update to Cadence 1.0 by turbolent · Pull Request #20 · onflow/sdks
Thanks to @SupunS for doing all the work! Just opening the PR for it to get it merged
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View