joshua | Flow (2024-01-02)
In Cadence 1.0, how do I get a storage capability that is typed as the type that I set it as? details in 🧵
8 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-cadencein one transaction, I issued a storage capability:
then in a different transaction, I am trying to get that capability from storage as the type
so I get the controller for it and get the capability from the controller:
but the type of the capability is just
Capability
I need it to be a capability of the type that I issued it as. I can get that type from the controller and I can get the Capability, but I don't know how to combine themUnknown User•12mo ago
Message Not Public
Sign In & Join Server To View
they are the same signer
@sainati | Cadence Do you know?
Or do you need more clarification?
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
what is the syntax there?
Is that correct?
I tried that and still got an error
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
okay, that looks like it worked. Thank you!