Update pragma to 0.8.20 (#4489)

Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2023-07-31 22:25:45 +02:00
committed by GitHub
parent d6b63a48ba
commit 00cbf5a236
243 changed files with 256 additions and 256 deletions

View File

@ -3,7 +3,7 @@ const { OPTS } = require('./Checkpoints.opts.js');
// TEMPLATE
const header = `\
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
import {Math} from "../math/Math.sol";

View File

@ -4,7 +4,7 @@ const { OPTS } = require('./Checkpoints.opts.js');
// TEMPLATE
const header = `\
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
import {Test} from "forge-std/Test.sol";
import {SafeCast} from "../../../contracts/utils/math/SafeCast.sol";

View File

@ -10,7 +10,7 @@ const TYPES = [
/* eslint-disable max-len */
const header = `\
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
import {EnumerableSet} from "./EnumerableSet.sol";

View File

@ -9,7 +9,7 @@ const TYPES = [
/* eslint-disable max-len */
const header = `\
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
/**
* @dev Library for managing

View File

@ -4,7 +4,7 @@ const { range } = require('../../helpers');
const LENGTHS = range(8, 256, 8).reverse(); // 248 → 8 (in steps of 8)
const header = `\
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
/**
* @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow

View File

@ -11,7 +11,7 @@ const TYPES = [
].map(type => Object.assign(type, { struct: (type.name ?? capitalize(type.type)) + 'Slot' }));
const header = `\
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.

View File

@ -96,7 +96,7 @@ index 38197f3a..bc934d1c 100644
@@ -50,10 +53,11 @@ Once installed, you can use the contracts in the library by importing them:
```solidity
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
-import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
+import {ERC721Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
@ -134,7 +134,7 @@ index 3800804a..90c1db78 100644
--- a/contracts/utils/cryptography/EIP712.sol
+++ b/contracts/utils/cryptography/EIP712.sol
@@ -4,7 +4,6 @@
pragma solidity ^0.8.19;
pragma solidity ^0.8.20;
import {MessageHashUtils} from "./MessageHashUtils.sol";
-import {ShortStrings, ShortString} from "../ShortStrings.sol";