onflow/cadence

Cadence Paths Equality Comparison

Closed this issue · 0 comments

Issue To Be Solved

Currently it is not possible to check Cadence Paths for equality

path != (/storage/flowTokenVault as Path)

results in:

cannot apply binary operation != to types: "Path", "Path"

Suggested Solution

Paths should be comparable.