Skip to content

Commit 35c6764

Browse files
committed
upgrade openzeppelin-contracts
1 parent ec65bf0 commit 35c6764

File tree

44 files changed

+83
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+83
-106
lines changed

foundry.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ evm_version = "cancun"
88

99
ignored_error_codes = [
1010
"license", # warning[1878]: Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
11-
3628, # Warning (3628): This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.
12-
3860, # Warning (3860): Contract initcode size is X bytes and exceeds Y bytes (a limit introduced in Shanghai). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
13-
5159, # Warning (5159): "selfdestruct" has been deprecated. The underlying opcode will eventually undergo breaking changes, and its use is not recommended.
14-
5574, # Warning (5574): Contract code size is 24870 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
15-
9302, # Warning (9302): Return value of low-level calls not used.
11+
2394, # Warning (2394): Transient storage as defined by EIP-1153 can break the composability of smart contracts: Since transient storage is cleared only at the end of the transaction and not at the end of the outermost call frame to the contract within a transaction, your contract may unintentionally misbehave when invoked multiple times in a complex transaction. To avoid this, be sure to clear all transient storage at the end of any call to your contract. The use of transient storage for reentrancy guards that are cleared at the end of the call is safe.
12+
3628, # Warning (3628): This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.
13+
3860, # Warning (3860): Contract initcode size is X bytes and exceeds Y bytes (a limit introduced in Shanghai). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
14+
5159, # Warning (5159): "selfdestruct" has been deprecated. The underlying opcode will eventually undergo breaking changes, and its use is not recommended.
15+
5574, # Warning (5574): Contract code size is 24870 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
16+
9302, # Warning (9302): Return value of low-level calls not used.
1617
]
1718

1819
# For Huff

lib/openzeppelin-contracts

src/0CTF2022/TctfNftMarket/CalldataBug.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: UNLICENSED
22
pragma solidity 0.8.15;
33

4-
import "forge-std/Test.sol";
4+
import {Test} from "forge-std/Test.sol";
55

66
struct A {
77
B b;
File renamed without changes.
File renamed without changes.

src/0x41414141CTF/RichClub/Exploit.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity 0.8.16;
2+
pragma solidity ^0.8.16;
33

44
import "forge-std/Script.sol";
55
import "src/utils/UniswapV2Library.sol";

src/BalsnCTF2022/NFTMarketplace/Exploit.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity 0.8.9;
2+
pragma solidity ^0.8.9;
33

44
import {NFTMarketplace} from "./challenge/NFTMarketplace.sol";
55
import {Create2} from "src/utils/Create2.sol";

src/BalsnCTF2022/NFTMarketplace/Exploit.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity 0.8.9;
2+
pragma solidity ^0.8.9;
33

44
import "forge-std/Test.sol";
55
import {NFTMarketplace} from "./challenge/NFTMarketplace.sol";

src/BalsnCTF2022/NFTMarketplace/challenge/NFTMarketplace.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity 0.8.9;
2+
pragma solidity ^0.8.9;
33

44
import "openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";
55
import "openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";

src/Curta/20_Lana/Exploit.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity 0.8.13;
2+
pragma solidity ^0.8.13;
33

44
import {Test, console2} from "forge-std/Test.sol";
55
import {Curta} from "../general/CurtaLocal.sol";

0 commit comments

Comments
 (0)