You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The linked code does not behave the way it appears to; the as? in this line does not actually function as a reference operator. In a future version of Cadence this code will be rejected by the typechecker.
Steps to Reproduce
Typecheck this contract on the master version of Cadence.
The text was updated successfully, but these errors were encountered:
I've made a PR to address stable cadence changes: #319
joshuahannan
changed the title
Upcoming version of Cadence will cause a core contract to fail typechecking
Update Core Contracts to be compatible with Stable Cadence
Aug 23, 2023
Problem
https://github.com/onflow/flow-core-contracts/blob/master/contracts/LockedTokens.cdc#L231
The linked code does not behave the way it appears to; the
as?
in this line does not actually function as a reference operator. In a future version of Cadence this code will be rejected by the typechecker.Steps to Reproduce
Typecheck this contract on the master version of Cadence.
The text was updated successfully, but these errors were encountered: