flow-core-contracts
flow-core-contracts copied to clipboard
Update Core Contracts to be compatible with Stable Cadence
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.
I've made a PR to address stable cadence changes: https://github.com/onflow/flow-core-contracts/pull/319
@joshuahannan I guess this is complete and can be closed?
yeah