onflow/flow-core-contracts

Balance Capability target check

Opened this issue · 0 comments

Issue To Be Solved

The target of the balance capability in Flow core contracts here:

Is not verified that it is in fact targeting the default FLOW vault.

Suggest A Solution

This can be verified, using the getLinkTarget method.

But you are currently not able to due paths not being comparable onflow/cadence#1815.
A workaround would be to compare the "path.toString()" values, but this seems dirty.