Commit 227c7aae by Augusto Committed by Francisco Giordano

added check to ret boolean on ECRecovery

parent 641b7513
......@@ -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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment