Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destination contract and source / from contract allow listing #19

Open
drinkcoffee opened this issue Sep 28, 2021 · 0 comments
Open

Destination contract and source / from contract allow listing #19

drinkcoffee opened this issue Sep 28, 2021 · 0 comments

Comments

@drinkcoffee
Copy link
Contributor

Function call approaches should have the ability to switch on an "allow" or "white" listing of contracts that can call the system or be called by the system. A possible approach would be:

Have a bool destContractAllowListingEnabled
and have a mapping(address => bool) destContractAllowed

By default when the contract is constructed destContractAllowListingEnabled is false. When one or more contracts are added to the allow list, destContractAllowListingEnabled would be set to true.

The ability to remove allowed contracts is required too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant