Commit b8f5056d authored by elenadimitrova's avatar elenadimitrova Committed by Kelvin Fichter

Switch pragma to 0.8.4 for all contracts in integration-tests and batch-submitter packages

parent aabe5168
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.7.0; pragma solidity ^0.8.4;
import { Reverter } from './Reverter.sol'; import { Reverter } from './Reverter.sol';
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0; pragma solidity ^0.8.4;
contract ERC20 { contract ERC20 {
event Transfer(address indexed _from, address indexed _to, uint256 _value); event Transfer(address indexed _from, address indexed _to, uint256 _value);
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.7.0; pragma solidity ^0.8.4;
// Can't do this until the package is published. // Can't do this until the package is published.
//import { iOVM_L1BlockNumber } from "@eth-optimism/contracts/iOVM_L1BlockNumber"; //import { iOVM_L1BlockNumber } from "@eth-optimism/contracts/iOVM_L1BlockNumber";
......
...@@ -18,7 +18,7 @@ copies or substantial portions of the Software. ...@@ -18,7 +18,7 @@ copies or substantial portions of the Software.
*/ */
pragma solidity ^0.7.0; pragma solidity ^0.8.4;
pragma experimental ABIEncoderV2; pragma experimental ABIEncoderV2;
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0; pragma solidity ^0.8.4;
/** /**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.7.0; pragma solidity ^0.8.4;
contract Reverter { contract Reverter {
string constant public revertMessage = "This is a simple reversion."; string constant public revertMessage = "This is a simple reversion.";
......
pragma solidity >=0.7.0; pragma solidity ^0.8.4;
contract ICrossDomainMessenger { contract ICrossDomainMessenger {
address public xDomainMessageSender; address public xDomainMessageSender;
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.7.0; pragma solidity ^0.8.4;
contract TestOOG { contract TestOOG {
function runOutOfGas() public { function runOutOfGas() public {
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >=0.7.0; pragma solidity ^0.8.4;
contract ValueContext { contract ValueContext {
function getSelfBalance() external payable returns(uint256) { function getSelfBalance() external payable returns(uint256) {
......
...@@ -16,7 +16,7 @@ const config: HardhatUserConfig = { ...@@ -16,7 +16,7 @@ const config: HardhatUserConfig = {
mocha: { mocha: {
timeout: 50000, timeout: 50000,
}, },
solidity: '0.7.6', solidity: '0.8.4',
gasReporter: { gasReporter: {
enabled: enableGasReport, enabled: enableGasReport,
currency: 'USD', currency: 'USD',
......
...@@ -19,7 +19,7 @@ const config: HardhatUserConfig = { ...@@ -19,7 +19,7 @@ const config: HardhatUserConfig = {
timeout: 50000, timeout: 50000,
}, },
solidity: { solidity: {
version: '0.7.0', version: '0.8.4',
settings: { settings: {
optimizer: { optimizer: {
enabled: true, enabled: true,
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0; pragma solidity ^0.8.4;
/** /**
* @title iOVM_L1BlockNumber * @title iOVM_L1BlockNumber
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0; pragma solidity ^0.8.4;
/** /**
* @title Lib_DefaultValues * @title Lib_DefaultValues
......
...@@ -9,7 +9,7 @@ library Lib_PredeployAddresses { ...@@ -9,7 +9,7 @@ library Lib_PredeployAddresses {
address internal constant L2_TO_L1_MESSAGE_PASSER = 0x4200000000000000000000000000000000000000; address internal constant L2_TO_L1_MESSAGE_PASSER = 0x4200000000000000000000000000000000000000;
address internal constant L1_MESSAGE_SENDER = 0x4200000000000000000000000000000000000001; address internal constant L1_MESSAGE_SENDER = 0x4200000000000000000000000000000000000001;
address internal constant DEPLOYER_WHITELIST = 0x4200000000000000000000000000000000000002; address internal constant DEPLOYER_WHITELIST = 0x4200000000000000000000000000000000000002;
address payable internal constant OVM_ETH = 0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000; address payable internal constant OVM_ETH = payable(0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000);
// solhint-disable-next-line max-line-length // solhint-disable-next-line max-line-length
address internal constant L2_CROSS_DOMAIN_MESSENGER = 0x4200000000000000000000000000000000000007; address internal constant L2_CROSS_DOMAIN_MESSENGER = 0x4200000000000000000000000000000000000007;
address internal constant LIB_ADDRESS_MANAGER = 0x4200000000000000000000000000000000000008; address internal constant LIB_ADDRESS_MANAGER = 0x4200000000000000000000000000000000000008;
......
...@@ -8,7 +8,7 @@ const config: HardhatUserConfig = { ...@@ -8,7 +8,7 @@ const config: HardhatUserConfig = {
sources: './test/test-contracts', sources: './test/test-contracts',
}, },
solidity: { solidity: {
version: '0.7.6', version: '0.8.4',
}, },
} }
......
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
pragma solidity >0.7.0 <0.9.0; pragma solidity ^0.8.4;
pragma experimental ABIEncoderV2; pragma experimental ABIEncoderV2;
contract MockL2CrossDomainMessenger { contract MockL2CrossDomainMessenger {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment