Add mitigation for BadParity
This commit is contained in:
parent
fc82b8c44b
commit
c22a3ec2f3
Binary file not shown.
@ -127,9 +127,11 @@ eth.sendTransaction({
|
|||||||
gas: "80000"
|
gas: "80000"
|
||||||
});
|
});
|
||||||
\end{minted}
|
\end{minted}
|
||||||
|
|
||||||
Our own balance has increased by 30 Ether.
|
Our own balance has increased by 30 Ether.
|
||||||
|
|
||||||
|
To mitigate this vulnerability the contract should use \texttt{call} instead of
|
||||||
|
\texttt{delegatecall}.
|
||||||
|
|
||||||
\section{DAO Down}
|
\section{DAO Down}
|
||||||
% Fill here your answers for exercise B
|
% Fill here your answers for exercise B
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user