Skip to content

Commit 92a09fe

Browse files
committedDec 31, 2022
update copyright
1 parent 9a6028a commit 92a09fe

25 files changed

+75
-75
lines changed
 

‎01_integer_underflow/Attack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b

‎01_integer_underflow/Dependencies.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b

‎01_integer_underflow/FixedEtherVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b

‎01_integer_underflow/InsecureEtherVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-01-integer-underflow-c1147c2e507b

‎02_reentrancy/Attack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-02-reentrancy-b0c08cfcd555

‎02_reentrancy/FixedEtherVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-02-reentrancy-b0c08cfcd555

‎02_reentrancy/InsecureEtherVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-02-reentrancy-b0c08cfcd555

‎03_reentrancy_via_modifier/Attack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81

‎03_reentrancy_via_modifier/Dependencies.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81

‎03_reentrancy_via_modifier/FixedAirdrop.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81

‎03_reentrancy_via_modifier/InsecureAirdrop.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-03-reentrancy-via-modifier-fba6b1d8ff81

‎04_cross_function_reentrancy/Attack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e

‎04_cross_function_reentrancy/Dependencies.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e

‎04_cross_function_reentrancy/FixedEtherVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e

‎04_cross_function_reentrancy/InsecureEtherVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-04-cross-function-reentrancy-de9cbce0558e

‎05_cross_contract_reentrancy/Attack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9

‎05_cross_contract_reentrancy/Dependencies.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9

‎05_cross_contract_reentrancy/FixedMoonVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9

‎05_cross_contract_reentrancy/InsecureMoonVault.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-05-cross-contract-reentrancy-30f29e2a01b9

‎06_integer_overflow/Attack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-06-integer-overflow-e1f444f3cc4

‎06_integer_overflow/FixedMoonToken.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-06-integer-overflow-e1f444f3cc4

‎06_integer_overflow/InsecureMoonToken.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-06-integer-overflow-e1f444f3cc4

‎07_phishing_with_improper_authorization/FixedDonation.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-07-phishing-with-improper-authorization-232dacf307e3

‎07_phishing_with_improper_authorization/InsecureDonation.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-07-phishing-with-improper-authorization-232dacf307e3

‎07_phishing_with_improper_authorization/PhishingAttack.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: BSL-1.0 (Boost Software License 1.0)
22

3-
//---------------------------------------------------------------------------------//
4-
// Copyright 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5-
//---------------------------------------------------------------------------------//
3+
//-------------------------------------------------------------------------------------//
4+
// Copyright (c) 2022 - 2023 serial-coder: Phuwanai Thummavet (mr.thummavet@gmail.com) //
5+
//-------------------------------------------------------------------------------------//
66

77
// For more info, please refer to my article:
88
// - On Medium: https://medium.com/valixconsulting/solidity-smart-contract-security-by-example-07-phishing-with-improper-authorization-232dacf307e3

0 commit comments

Comments
 (0)
Please sign in to comment.