Type/value mismatch solidity

type/value mismatch solidity

pragma solidity ^0.4.15;

contract Whitelist  {

    mapping (address => bool) userAddr;

    function whitelistAddress (address[] users) public{

        for (uint i = 0; i < users.length; i++) {

            userAddr[users[i]] = true;




Hi, welcome! :wave:

Your contract looks like ok, I think the error is that you did not pass parameters correctly via the Remix, I think you should use the double quote to decorate the address, such as

1 Like

@Skyge thank you for much .. it resolved