August 2018
Intermediate to advanced
404 pages
11h 19m
English
Every multisig wallet should have the following basic components:
pragma solidity^0.4.24;contract MultiSig { // Mapping to save the ownership status mapping (address => bool) public isOwner; // Owners array address[] public owners; // Returns list of owners. function getOwners() public view returns (address[]) { return owners; } // Modifier to restrict access modifier onlyOwner(address owner) { require(isOwner[owner]); _; }}