Hello,
i am currently working on MultiSigWallet and i decided to add onlyOwner modifier to function addOwner. Function addOwner is working but when i put onlyOwner to heading it stops working and starts to revert. Anyone knows whats wrong?
Edit: the owner address is in a format address: 0x0000000000000000000000000000000000000000
I saw in the video about inheritance, that Filip has normal address not just zero´s.
Thanks
pragma solidity 0.7.5;
contract MultiSigWallet{
address public owner;
constructor(){
owner == msg.sender;
}
modifier onlyOwner{
require(msg.sender == owner);
_;
}
address[] Owners;
function addOwner(address _owners) public onlyOwner{
Owners.push(_owners);
}
}