joshua | Flow (2024-05-06)
I updated to the latest preview of flow-go-sdk, cadence, and emulator and I am getting this error in my Go tests now:
This is my code:
I checked the cadence value code for events and tried
fields
, and getFieldValues()
but those aren't found either.
Any idea what I should be using there to get a field from an event?4 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-cadenceThis is one of the Go API breaking changes in one of the last releases: https://github.com/onflow/cadence/releases/tag/v1.0.0-preview.24. As discussed in the office hours, we'll need to document this better
So what do I change it to in order to access it? It looks like the things in the events section of values.go didn't work
I'm working on writing this up, I'll ping you once it's done
@joshua | Flow see https://www.notion.so/flowfoundation/Cadence-Forum-Post-Update-3d1ed5be20684c1dacecc1392ae4ffe4?pvs=4#63212bd012474eafba216a166d04e2f0 for the draft of what is going to get published soon. please leave feedback
@joshua | Flow Thanks for the feedback! Could you please have another look? If the examples look OK, I'll post