Skip to content

Instantly share code, notes, and snippets.

@ac12644
Created February 21, 2022 16:41
Show Gist options
  • Save ac12644/ec89503c6077fd3ffbce976c6b814f6c to your computer and use it in GitHub Desktop.
Save ac12644/ec89503c6077fd3ffbce976c6b814f6c to your computer and use it in GitHub Desktop.
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