onflow/flow-core-contracts

Revisit `Account` entitlements in `FlowStakingCollection.CollectionOwner.registerNode`

Closed this issue · 1 comments

Issue To Be Solved

Refer to: #382 (comment)

Suggest A Solution

Determine what is the minimal set of entitlements sufficient for the returned Account in the above method.

I don't think we need to make it a minimal set of capabilities here. It is a brand new account that the caller is expected to own, so I don't think we should restrict it. They should be allowed to do anything they want with it in the transaction