Created
February 21, 2022 16:41
-
-
Save ac12644/ec89503c6077fd3ffbce976c6b814f6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract WalletLibrary is WalletEvents { | |
... | |
// throw unless the contract is not yet initialized. | |
modifier only_uninitialized { if (m_numOwners > 0) throw; _; } | |
// constructor - just pass on the owner array to multiowned and | |
// the limit to daylimit | |
function initWallet(address[] _owners, uint _required, uint _daylimit) | |
only_uninitialized { | |
initDaylimit(_daylimit); | |
initMultiowned(_owners, _required); | |
} | |
// kills the contract sending everything to `_to`. | |
function kill(address _to) onlymanyowners(sha3(msg.data)) external { | |
suicide(_to); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment