Balance Capability target check #296
Labels
Bug 🪲
Feature
Feedback
good first issue
Good for newcomers
Needs Estimation
SC-Eng
Issues that we want to see surfaced in SC-Eng ZH Board
Issue To Be Solved
The target of the balance capability in Flow core contracts here:
flow-core-contracts/contracts/FlowStorageFees.cdc
Line 69 in ed4310c
flow-core-contracts/contracts/FlowStorageFees.cdc
Line 119 in ed4310c
flow-core-contracts/contracts/FlowServiceAccount.cdc
Line 53 in ed4310c
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.
The text was updated successfully, but these errors were encountered: