Skip to content

Commit

Permalink
fix contracts compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
0xverin committed Dec 18, 2024
1 parent 7a5ac1d commit 346f7af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions parachain/ts-tests/common/utils/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -35,7 +35,11 @@ const input = {
'*': ['*'],
},
},
// evmVersion: "byzantium",
evmVersion: "london",
optimizer: {
enabled: true,
runs: 200
}
},
};
const result = JSON.parse(solcWrapper.compile(JSON.stringify(input)));
Expand Down
2 changes: 1 addition & 1 deletion parachain/ts-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion parachain/ts-tests/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 346f7af

Please sign in to comment.