You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a threshold error when, implementing the anon flow for setting up the anon guardian recovery module. Well seems like it's a logic error where if the inputs for the guardian hash are provided with threshold and owners being zero. Either way the threshold has to be greater than 0, well neglecting the flow of anon guardianhash recovery !
The text was updated successfully, but these errors were encountered:
function _init(bytes calldata data) internal override {
(address[] memory _guardians, uint256 _threshold, bytes32 _guardianHash) =
abi.decode(data, (address[], uint256, bytes32));
address _sender = sender();
require(_threshold > 0 && _threshold <= _guardians.length, "threshold error");
if (_guardians.length > 0) {
require(_guardianHash == bytes32(0), "cannot set anonomous guardian with onchain guardian");
}
if (_guardians.length == 0) {
require(_guardianHash != bytes32(0), "guardian config error");
}
for (uint256 i = 0; i < _guardians.length; i++) {
walletGuardian[_sender].guardians.add(_guardians[i]);
}
walletGuardian[_sender].guardianHash = _guardianHash;
walletGuardian[_sender].threshold = _threshold;
walletInitSeed[_sender] = _newSeed();
}
There's a threshold error when, implementing the anon flow for setting up the anon guardian recovery module. Well seems like it's a logic error where if the inputs for the guardian hash are provided with threshold and owners being zero. Either way the threshold has to be greater than 0, well neglecting the flow of anon guardianhash recovery !
The text was updated successfully, but these errors were encountered: