contract Bogus {

    mapping(address => bool) internal iNeedItToBeTrueByDefault;

    function Bogus() {

  • 1
    if you can be more specific on requirement, workarounds might be suggested – Achala Dissanayake May 4 '18 at 12:55

You can't.

What you can do is the inverse.

You keep track of the "blacklisted" addresses, instead of the whitelisted ones.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.