[LS] Support for resolving access(account)
benbackend opened this issue · 2 comments
benbackend commented
Currently, when we use access modifier access(account), vscode extention will treat all these contracts to be deployed in separate accounts and report error.
As the contracts should already be defined in flow.json, it should be possible to resolve whether the contracts are going to be under the same account?
Adding this feature can help a lot!
Thank you.
turbolent commented
This must likely be implemented in the language server and should probably take into account the flow.json configuration.
The type checker already supports this through a custom handler (sema.Config.MemberAccountAccessHandler
)
sideninja commented
@Bamthelearner @turbolent this is now implemented.