Commit 227c7aae by Augusto Committed by Francisco Giordano

added check to ret boolean on ECRecovery

parent 641b7513
...@@ -62,6 +62,10 @@ library ECRecovery { ...@@ -62,6 +62,10 @@ library ECRecovery {
bool ret; bool ret;
address addr; address addr;
(ret, addr) = safeRecover(hash, v, r, s); (ret, addr) = safeRecover(hash, v, r, s);
if (!ret)
return address(0);
else
return addr; 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