For some reason the dropModule(..) function in moduleHandler checks the votes for replaceModule action to disable the module:
function dropModule(string name, bool callCallback) external returns (bool success) {
/*
Deleting module from the database. Can be called only by the Publisher contract or while debug mode by owners.
@name Name of module to delete.
@callCallback Call the replaceable module to confirm replacement or not.
@success Was the Function successful?
*/
var (_success, _found, _id) = getModuleIDByAddress(msg.sender);
require( _success );
if ( ! ( _found && modules[_id].name == sha3('Publisher') )) {
require( block.number < debugModeUntil );
if ( ! insertAndCheckDo(calcDoHash("replaceModule", sha3(name, callCallback))) ) {
return true;
}
}
Also,
the dropModule(..) function name is not consistent with a similar function called callDisableCallback(...) - i think the dropModule(..) function should be renamed to disableModule(...).
For some reason the
dropModule(..)
function inmoduleHandler
checks the votes for replaceModule action to disable the module:Also, the
dropModule(..)
function name is not consistent with a similar function calledcallDisableCallback(...)
- i think thedropModule(..)
function should be renamed todisableModule(...)
.