diff --git a/parachain/ts-tests/common/utils/compile.ts b/parachain/ts-tests/common/utils/compile.ts index 0e64e74467..c8ff8b8e8d 100644 --- a/parachain/ts-tests/common/utils/compile.ts +++ b/parachain/ts-tests/common/utils/compile.ts @@ -3,7 +3,7 @@ import solc from 'solc'; const solcWrapper: any = solc; const source: string = ` // SPDX-License-Identifier: MIT -pragma solidity ^0.8.26; +pragma solidity ^0.8.28; contract Hello { string public message; @@ -35,7 +35,11 @@ const input = { '*': ['*'], }, }, - // evmVersion: "byzantium", + evmVersion: "london", + optimizer: { + enabled: true, + runs: 200 + } }, }; const result = JSON.parse(solcWrapper.compile(JSON.stringify(input))); diff --git a/parachain/ts-tests/package.json b/parachain/ts-tests/package.json index 9f2722a98e..236801cee5 100644 --- a/parachain/ts-tests/package.json +++ b/parachain/ts-tests/package.json @@ -45,7 +45,7 @@ "bn.js": "^5.2.1", "dotenv": "^16.4.5", "ethers": "^5.7.2", - "solc": "^0.8.26", + "solc": "^0.8.28", "web3": "^4.7.0", "web3-types": "^1.5.0", "web3-utils": "^4.2.2" diff --git a/parachain/ts-tests/pnpm-lock.yaml b/parachain/ts-tests/pnpm-lock.yaml index 0064e162eb..c0acbe15c2 100644 --- a/parachain/ts-tests/pnpm-lock.yaml +++ b/parachain/ts-tests/pnpm-lock.yaml @@ -39,7 +39,7 @@ dependencies: specifier: ^5.7.2 version: 5.7.2 solc: - specifier: ^0.8.26 + specifier: ^0.8.28 version: 0.8.28 web3: specifier: ^4.7.0