onflow/flow-core-contracts

Update Core Contracts to be compatible with Stable Cadence

dsainati1 opened this issue · 3 comments

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: #319