From 92a5dee00b98f1bc06eadcbcfb798829ff1e77c4 Mon Sep 17 00:00:00 2001 From: Nabil Omar <63709472+indeqs@users.noreply.github.com> Date: Sun, 2 Jun 2024 06:28:14 +0000 Subject: [PATCH 1/2] Update use-of-deprecated-functions.md --- vulnerabilities/use-of-deprecated-functions.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vulnerabilities/use-of-deprecated-functions.md b/vulnerabilities/use-of-deprecated-functions.md index 7c81533..c4eed06 100644 --- a/vulnerabilities/use-of-deprecated-functions.md +++ b/vulnerabilities/use-of-deprecated-functions.md @@ -6,7 +6,6 @@ Here is a *non-exhaustive* list of deprecated functions and alternatives. Many a | Deprecated | Alternatives | | :---------------------- | ------------------------: | -| `suicide(address)` | `selfdestruct(address)` | | `block.blockhash(uint)` | `blockhash(uint)` | | `sha3(...)` | `keccak256(...)` | | `callcode(...)` | `delegatecall(...)` | @@ -18,4 +17,4 @@ Here is a *non-exhaustive* list of deprecated functions and alternatives. Many a ### Sources - https://swcregistry.io/docs/SWC-111 -- https://github.com/ethereum/solidity/releases \ No newline at end of file +- https://github.com/ethereum/solidity/releases From a1f69924dd8fb507981c563d529ab7a5a35ce662 Mon Sep 17 00:00:00 2001 From: Nabil Omar <63709472+indeqs@users.noreply.github.com> Date: Thu, 6 Jun 2024 05:27:02 +0000 Subject: [PATCH 2/2] Update use-of-deprecated-functions.md --- vulnerabilities/use-of-deprecated-functions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/vulnerabilities/use-of-deprecated-functions.md b/vulnerabilities/use-of-deprecated-functions.md index c4eed06..74943a3 100644 --- a/vulnerabilities/use-of-deprecated-functions.md +++ b/vulnerabilities/use-of-deprecated-functions.md @@ -6,6 +6,7 @@ Here is a *non-exhaustive* list of deprecated functions and alternatives. Many a | Deprecated | Alternatives | | :---------------------- | ------------------------: | +| `suicide(address)`/`selfdestruct(address)` | N/A | | `block.blockhash(uint)` | `blockhash(uint)` | | `sha3(...)` | `keccak256(...)` | | `callcode(...)` | `delegatecall(...)` |