joshua | Flow (2024-02-12)
in Cadence 1.0, are weights for account keys still a number between 1 and 1000? In the documentation, I'm seeing keys with weight 0.5: https://cadence-lang.org/docs/1.0/language/crypto#key-lists
5 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-cadenceThat function always used 1.0 as the threshold, and that has not changed in Cadence 1.0, the documentation is correct
see https://github.com/onflow/cadence/blame/master/runtime/stdlib/contracts/crypto.cdc. added 4 years ago: https://github.com/onflow/cadence/commit/491d4aea2eda5645183e6ba7332fdd65114379cb#diff-81878b57dc1e291f2cb93287e685c2ffe851ad094118f786343c8a66c64b62a3R181
maybe you are confusing this with Flow account key weights
I'm talking about account key weights
yeah I guess the docs I linked are not account keys
that clears it up. thanks!
re: account key weights: those are defined in FVM, so not sure if there was a change there
I'm sure there wasn't. I was just confused