function multiowned(address[] _owners, uint _required) {
m_numOwners = _owners.length + 1;
m_owners[1] = uint(msg.sender);
m_ownerIndex[uint(msg.sender)] = 1;
for (uint i = 0; i < _owners.length; ++i)
{
m_owners[2 + i] = uint(_owners[i]);
m_ownerIndex[uint(_owners[i])] = 2 + i;
}
m_required = _required;
}
Can anyone help me understand the above solidity code and use of m_owners[1] = uint(msg.sender); ?
Source code here https://github.com/ConsenSys/MultiSigWallet/blob/master/MultiSigWalletWithDailyLimit.sol
m_numOwners
m_owners
,m_ownerIndex
andm_required
_owners
withmsg.sender
being added to the first index of this new map and all of the other address of_owners
being pushed to +1 index inm_owners