modifier onlyCustodian() { require(store.accountExists(msg.sender, CUSTODIAN), "Custodian address required"); require(!store.accountFrozen(msg.sender), "Custodian is frozen"); _; } /** * Sets the storage contract address * @param s The Storage contract to use */ function setStorage(Storage s) onlyOwner external { store = s; } /** * Adds a brokerDealer to the registry * Upon successful addition, the contract must emit `BrokerDealerAdded(brokerDealer)` * THROWS if the address has already been added, or is zero * @param brokerDealer The address of the broker-dealer */ function add(address brokerDealer) onlyCustodian external { store.addAccount(brokerDealer, BROKER_DEALER, false, msg.sender); emit BrokerDealerAdded(brokerDealer, msg.sender); }
0.4.18