F
Flow2y ago
joshua

cheapskates (2023-07-27)

Anyone know why a {String: Bool}? return type would be invalid? I'm testing stable cadence changes
error: invalid return type for special function
--> 8c5303eaa26202d6.FlowIDTableStaking:1856:35
|
1856 | access(all) getApprovedList(): {String: Bool}? {
error: invalid return type for special function
--> 8c5303eaa26202d6.FlowIDTableStaking:1856:35
|
1856 | access(all) getApprovedList(): {String: Bool}? {
3 Replies
Needle
Needle2y ago
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-cadence
turbolent
turbolent2y ago
You’re missing the fun keyword. Maybe open an issue in the Cadence repo to provide a suggested fix which adds it if it is missing
joshua
joshuaOP2y ago
😅 oops. Thanks for pointing out my silly mistake haha. I'll create an issue I hope you had a good vacation! 🙂
Want results from more Discord servers?
Add your server