diff --git a/target_chains/ethereum/contracts/contracts/entropy/Entropy.sol b/target_chains/ethereum/contracts/contracts/entropy/Entropy.sol index e84892e70f..fad430922f 100644 --- a/target_chains/ethereum/contracts/contracts/entropy/Entropy.sol +++ b/target_chains/ethereum/contracts/contracts/entropy/Entropy.sol @@ -1081,7 +1081,7 @@ abstract contract Entropy is IEntropy, EntropyState { _state.seed = keccak256( abi.encodePacked( block.timestamp, - block.difficulty, + block.prevrandao, msg.sender, _state.seed ) diff --git a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol index 18d51ca5f8..d899474237 100644 --- a/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol +++ b/target_chains/ethereum/contracts/contracts/pyth/Pyth.sol @@ -683,7 +683,7 @@ abstract contract Pyth is } function version() public pure returns (string memory) { - return "1.4.4-alpha.5"; + return "1.4.4"; } /// @notice Calculates TWAP from two price points diff --git a/target_chains/ethereum/contracts/forge-test/Echo.t.sol b/target_chains/ethereum/contracts/forge-test/Echo.t.sol index c9df2a40a2..8b492fc412 100644 --- a/target_chains/ethereum/contracts/forge-test/Echo.t.sol +++ b/target_chains/ethereum/contracts/forge-test/Echo.t.sol @@ -1171,7 +1171,7 @@ contract EchoTest is Test, EchoEvents, IEchoConsumer, EchoTestUtils { assertApproxEqRel( gas2Used, gas1Used * 2, - 0.1e18, // 10% tolerance + 0.2e18, // 20% tolerance "Gas usage should scale roughly linearly" ); } diff --git a/target_chains/ethereum/contracts/foundry.toml b/target_chains/ethereum/contracts/foundry.toml index 627e6d2712..57d77cec3d 100644 --- a/target_chains/ethereum/contracts/foundry.toml +++ b/target_chains/ethereum/contracts/foundry.toml @@ -1,5 +1,5 @@ [profile.default] -solc_version = '0.8.4' +solc_version = '0.8.29' optimizer = true optimizer_runs = 200 src = 'contracts' diff --git a/target_chains/ethereum/contracts/hardhat.config.ts b/target_chains/ethereum/contracts/hardhat.config.ts index baf60b668f..ce5572efdb 100644 --- a/target_chains/ethereum/contracts/hardhat.config.ts +++ b/target_chains/ethereum/contracts/hardhat.config.ts @@ -112,7 +112,7 @@ module.exports = { ], }, solidity: { - version: "0.8.4", + version: "0.8.29", settings: { optimizer: { enabled: true, diff --git a/target_chains/ethereum/contracts/truffle-config.js b/target_chains/ethereum/contracts/truffle-config.js index 309bdade8b..ac6fd799dc 100644 --- a/target_chains/ethereum/contracts/truffle-config.js +++ b/target_chains/ethereum/contracts/truffle-config.js @@ -33,7 +33,7 @@ module.exports = { compilers: { solc: { - version: "0.8.4", + version: "0.8.29", settings: { optimizer: { enabled: true,