Skip to content

Commit

Permalink
Upgrade Solidity Compiler to v0.8.27 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjams authored Sep 17, 2024
2 parents 00eac7e + baae0f5 commit 3e26775
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## vNEXT
- Upgrade Solidity Compiler to `v0.8.27`. (#45)
- Bump dependencies: (#44)
- `@openzeppelin/hardhat-upgrades`, `hardhat`, `ethers`, `prettier`, and others [minor version bump]
- `prettier-plugin-organize-imports@4`
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/IexecPocoMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract IexecPocoMock is ERC20 {
uint256 public mockTaskIndex = 0;
bytes32 public mockTaskId = keccak256(abi.encode(mockDealId, mockTaskIndex));

IexecLibCore_v5.Deal public deal;
IexecLibCore_v5.Deal deal;
IexecLibCore_v5.DealBoost public dealBoost;
mapping(bytes32 => IexecLibCore_v5.Task) public tasks;

Expand Down
12 changes: 2 additions & 10 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.8.24',
version: '0.8.27',
settings: {
/**
* Enable Intermediate Representation (IR) to reduce `Stack too deep` occurrences
Expand All @@ -34,15 +34,7 @@ const config: HardhatUserConfig = {
details: {
yul: true,
yulDetails: {
/**
* Disable temporarily.
* Causes:
* YulException: Cannot swap Slot RET with Variable value10: too deep in the stack
* by 1 slots in [ RET value15 value14 value13 value12 value11 headStart value9
* value8 value7 value6 value5 value4 value3 value2 value1 value0 value10 ]
* memoryguard was present.
*/
// optimizerSteps: 'u',
optimizerSteps: 'u',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/voucherHubUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ export async function getExpectedVoucherProxyCodeHash(voucherBeaconAddress: stri
* Note: Look very carefully before updating this value to avoid messing with
* existing vouchers already deployed in production.
*/
return '0xebe0c40d5e931d865b61665b4e9435cc65ece10955457af1b4271e3438e4949e';
return '0x386d2735c0e7b2144a00e43bc5451acd8063573f30f1edc7b8e8891039cbd84f';
}
}

0 comments on commit 3e26775

Please sign in to comment.