added check to ret boolean on ECRecovery
This commit is contained in:
committed by
Francisco Giordano
parent
641b751385
commit
227c7aae0f
@ -62,7 +62,11 @@ library ECRecovery {
|
||||
bool ret;
|
||||
address addr;
|
||||
(ret, addr) = safeRecover(hash, v, r, s);
|
||||
return addr;
|
||||
|
||||
if (!ret)
|
||||
return address(0);
|
||||
else
|
||||
return addr;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user